#[non_exhaustive]pub struct MemoryWriteRequest {
pub path: String,
pub text: Option<String>,
pub edit: Option<MemoryEdit>,
pub expected_revision_id: Option<String>,
pub merge: bool,
pub description: Option<String>,
pub idempotency_key: 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.path: String§text: Option<String>§edit: Option<MemoryEdit>§expected_revision_id: Option<String>§merge: bool§description: Option<String>§idempotency_key: Option<String>Implementations§
Source§impl MemoryWriteRequest
impl MemoryWriteRequest
pub fn text(path: impl Into<String>, text: impl Into<String>) -> Self
pub fn edit(path: impl Into<String>, edit: MemoryEdit) -> Self
pub fn expected_revision_id(self, revision_id: impl Into<String>) -> Self
pub fn merge(self, merge: bool) -> Self
pub fn description(self, description: impl Into<String>) -> Self
pub fn idempotency_key(self, key: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for MemoryWriteRequest
impl Clone for MemoryWriteRequest
Auto Trait Implementations§
impl Forget for MemoryWriteRequest
impl Freeze for MemoryWriteRequest
impl Move for MemoryWriteRequest
impl RefUnwindSafe for MemoryWriteRequest
impl Send for MemoryWriteRequestwhere
RawVecInner: Send,
impl Sync for MemoryWriteRequestwhere
RawVecInner: Sync,
impl Unpin for MemoryWriteRequest
impl UnsafeUnpin for MemoryWriteRequest
impl UnwindSafe for MemoryWriteRequestwhere
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