pub struct PublicBlob { /* private fields */ }Expand description
Public Blob: an immutable chunk of data which cannot be deleted.
Implementations§
Source§impl PublicData
impl PublicData
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 PublicData
impl Clone for PublicData
Source§fn clone(&self) -> PublicData
fn clone(&self) -> PublicData
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 PublicData
impl Debug for PublicData
Source§impl<'de> Deserialize<'de> for PublicData
impl<'de> Deserialize<'de> for PublicData
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<PublicData> for Data
impl From<PublicData> for Data
Source§fn from(data: PublicData) -> Self
fn from(data: PublicData) -> Self
Converts to this type from the input type.
Source§impl Hash for PublicData
impl Hash for PublicData
Source§impl Ord for PublicData
impl Ord for PublicData
Source§fn cmp(&self, other: &PublicData) -> Ordering
fn cmp(&self, other: &PublicData) -> 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 PublicData
impl PartialEq for PublicData
Source§impl PartialOrd for PublicData
impl PartialOrd for PublicData
Source§impl Serialize for PublicData
impl Serialize for PublicData
impl Eq for PublicData
impl StructuralPartialEq for PublicData
Auto Trait Implementations§
impl Freeze for PublicData
impl RefUnwindSafe for PublicData
impl Send for PublicData
impl Sync for PublicData
impl Unpin for PublicData
impl UnwindSafe for PublicData
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