pub enum Blob {
Private(PrivateData),
Public(PublicData),
}Expand description
Object storing an Blob variant.
Variants§
Implementations§
Source§impl Data
impl Data
Sourcepub fn validate_size(&self) -> bool
pub fn validate_size(&self) -> bool
Returns true if the size is valid.
Sourcepub fn serialised_size(&self) -> u64
pub fn serialised_size(&self) -> u64
Returns size of this data after serialisation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Data
impl<'de> Deserialize<'de> for Data
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
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 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 Ord for Data
impl Ord for Data
Source§impl PartialOrd for Data
impl PartialOrd for Data
Source§impl TryFrom<QueryResponse> for Blob
impl TryFrom<QueryResponse> for Blob
Source§type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
impl Eq for Data
impl StructuralPartialEq for Data
Auto Trait Implementations§
impl Freeze for Data
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnwindSafe for Data
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