pub struct CaptureRequest {
pub content: String,
pub namespace: Namespace,
pub domain: Domain,
pub tags: Vec<String>,
pub source: Option<String>,
pub skip_security_check: bool,
}Expand description
Request to capture a new memory.
Fields§
§content: StringThe content to capture.
namespace: NamespaceTarget namespace for the memory.
domain: DomainTarget domain for the memory.
Optional tags for categorization.
source: Option<String>Optional source reference.
skip_security_check: boolWhether to skip security filtering.
Implementations§
Source§impl CaptureRequest
impl CaptureRequest
Sourcepub fn new(content: impl Into<String>) -> Self
pub fn new(content: impl Into<String>) -> Self
Creates a new capture request with the given content.
Sourcepub const fn with_namespace(self, namespace: Namespace) -> Self
pub const fn with_namespace(self, namespace: Namespace) -> Self
Sets the namespace.
Sourcepub fn with_domain(self, domain: Domain) -> Self
pub fn with_domain(self, domain: Domain) -> Self
Sets the domain.
Sourcepub fn with_source(self, source: impl Into<String>) -> Self
pub fn with_source(self, source: impl Into<String>) -> Self
Sets the source reference.
Trait Implementations§
Source§impl Clone for CaptureRequest
impl Clone for CaptureRequest
Source§fn clone(&self) -> CaptureRequest
fn clone(&self) -> CaptureRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CaptureRequest
impl Debug for CaptureRequest
Source§impl Default for CaptureRequest
impl Default for CaptureRequest
Source§fn default() -> CaptureRequest
fn default() -> CaptureRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CaptureRequest
impl RefUnwindSafe for CaptureRequest
impl Send for CaptureRequest
impl Sync for CaptureRequest
impl Unpin for CaptureRequest
impl UnwindSafe for CaptureRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more