#[non_exhaustive]pub struct MemoryForgetRequest {
pub target: Option<MemoryTarget>,
pub entry_id: Option<String>,
pub text: Option<String>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.target: Option<MemoryTarget>§entry_id: Option<String>§text: Option<String>Implementations§
Source§impl MemoryForgetRequest
impl MemoryForgetRequest
pub fn file(target: MemoryTarget) -> Self
pub fn entry(target: MemoryTarget, entry_id: impl Into<String>) -> Self
pub fn text(text: impl Into<String>) -> Self
pub fn in_file(self, target: MemoryTarget) -> Self
Trait Implementations§
Source§impl Clone for MemoryForgetRequest
impl Clone for MemoryForgetRequest
Source§impl Debug for MemoryForgetRequest
impl Debug for MemoryForgetRequest
Auto Trait Implementations§
impl Forget for MemoryForgetRequest
impl Freeze for MemoryForgetRequest
impl Move for MemoryForgetRequest
impl RefUnwindSafe for MemoryForgetRequest
impl Send for MemoryForgetRequestwhere
RawVecInner: Send,
impl Sync for MemoryForgetRequestwhere
RawVecInner: Sync,
impl Unpin for MemoryForgetRequest
impl UnsafeUnpin for MemoryForgetRequest
impl UnwindSafe for MemoryForgetRequestwhere
RawVecInner: UnwindSafe,
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