pub struct SetDoc {
pub data: Blob,
pub description: Option<String>,
pub version: Option<Version>,
}Expand description
Parameters for setting a document.
This struct, SetDoc, is used to specify the parameters for setting or updating a document in a collection’s store.
It includes the following fields:
data: ABlobcontaining the new data for the document.description: An optionalStringproviding additional description for the document. This field is optional.version: An optionalu64version representing the last version of the document to ensure update consistency. This field is optional - i.e. first time a document is saved, it can be left empty but following updates require the current version to be passed.
SetDoc is used to provide parameters for setting or updating a document in the collection’s store.
Fields§
§data: Blob§description: Option<String>§version: Option<Version>Trait Implementations§
Source§impl CandidType for SetDoc
impl CandidType for SetDoc
Source§impl<'de> Deserialize<'de> for SetDoc
impl<'de> Deserialize<'de> for SetDoc
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SetDoc
impl RefUnwindSafe for SetDoc
impl Send for SetDoc
impl Sync for SetDoc
impl Unpin for SetDoc
impl UnwindSafe for SetDoc
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