Struct dittolive_ditto::store::attachment::DittoAttachment
source · pub struct DittoAttachment { /* private fields */ }
Expand description
Represents an attachment and can be used to insert the associated attachment into a document at a specific key.
Implementations§
source§impl DittoAttachment
impl DittoAttachment
sourcepub fn id(&self) -> String
pub fn id(&self) -> String
Returns the id
of this attachment, encoded so as to be compatible with the
crate::store::dql::Query
API.
sourcepub fn len(&self) -> u64
pub fn len(&self) -> u64
Returns the len
, in bytes, of this attachment’s data. Compatible with the
crate::store::dql::Query
API.
Trait Implementations§
source§impl Debug for DittoAttachment
impl Debug for DittoAttachment
Auto Trait Implementations§
impl RefUnwindSafe for DittoAttachment
impl Send for DittoAttachment
impl Sync for DittoAttachment
impl Unpin for DittoAttachment
impl UnwindSafe for DittoAttachment
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