Struct dittolive_ditto::store::attachment::token::DittoAttachmentToken
source · pub struct DittoAttachmentToken { /* private fields */ }
Expand description
Serves as a token for a specific attachment that you can pass to a call to
fetch_attachment
.
Implementations§
source§impl DittoAttachmentToken
impl DittoAttachmentToken
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 size, in bytes, of this attachment’s data. Compatible with the
crate::store::dql::Query
API.
Trait Implementations§
source§impl Clone for DittoAttachmentToken
impl Clone for DittoAttachmentToken
source§fn clone(&self) -> DittoAttachmentToken
fn clone(&self) -> DittoAttachmentToken
Returns a copy 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 DittoAttachmentToken
impl Debug for DittoAttachmentToken
source§impl<'de> Deserialize<'de> for DittoAttachmentToken
impl<'de> Deserialize<'de> for DittoAttachmentToken
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 RefUnwindSafe for DittoAttachmentToken
impl Send for DittoAttachmentToken
impl Sync for DittoAttachmentToken
impl Unpin for DittoAttachmentToken
impl UnwindSafe for DittoAttachmentToken
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