pub struct PrivateBlob { /* private fields */ }Expand description
Private Blob: an immutable chunk of data which can be deleted. Can only be fetched by the listed owner.
Implementations§
Source§impl PrivateData
impl PrivateData
Sourcepub fn payload_size(&self) -> usize
pub fn payload_size(&self) -> usize
Returns size of contained value.
Sourcepub fn serialised_size(&self) -> u64
pub fn serialised_size(&self) -> u64
Returns size of this data after serialisation.
Sourcepub fn validate_size(&self) -> bool
pub fn validate_size(&self) -> bool
Returns true if the size is valid.
Trait Implementations§
Source§impl Clone for PrivateData
impl Clone for PrivateData
Source§fn clone(&self) -> PrivateData
fn clone(&self) -> PrivateData
Returns a duplicate 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 PrivateData
impl Debug for PrivateData
Source§impl<'de> Deserialize<'de> for PrivateData
impl<'de> Deserialize<'de> for PrivateData
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PrivateData> for Data
impl From<PrivateData> for Data
Source§fn from(data: PrivateData) -> Self
fn from(data: PrivateData) -> Self
Converts to this type from the input type.
Source§impl Hash for PrivateData
impl Hash for PrivateData
Source§impl Ord for PrivateData
impl Ord for PrivateData
Source§fn cmp(&self, other: &PrivateData) -> Ordering
fn cmp(&self, other: &PrivateData) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PrivateData
impl PartialEq for PrivateData
Source§impl PartialOrd for PrivateData
impl PartialOrd for PrivateData
Source§impl Serialize for PrivateData
impl Serialize for PrivateData
impl Eq for PrivateData
impl StructuralPartialEq for PrivateData
Auto Trait Implementations§
impl Freeze for PrivateData
impl RefUnwindSafe for PrivateData
impl Send for PrivateData
impl Sync for PrivateData
impl Unpin for PrivateData
impl UnwindSafe for PrivateData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more