Struct fiberplane_models::blobs::EncodedBlob
source · #[non_exhaustive]pub struct EncodedBlob {
pub data: String,
pub mime_type: String,
}Expand description
base64-encoded version of Blob.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.data: StringRaw data, encoded using base64 so it can be serialized using JSON.
mime_type: StringMIME type to use for interpreting the raw data.
See Blob::mime_type.
Implementations§
Trait Implementations§
source§impl Clone for EncodedBlob
impl Clone for EncodedBlob
source§fn clone(&self) -> EncodedBlob
fn clone(&self) -> EncodedBlob
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 EncodedBlob
impl Debug for EncodedBlob
source§impl Default for EncodedBlob
impl Default for EncodedBlob
source§fn default() -> EncodedBlob
fn default() -> EncodedBlob
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for EncodedBlob
impl<'de> Deserialize<'de> for EncodedBlob
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<&Blob> for EncodedBlob
impl From<&Blob> for EncodedBlob
source§impl From<Blob> for EncodedBlob
impl From<Blob> for EncodedBlob
source§impl PartialEq<EncodedBlob> for EncodedBlob
impl PartialEq<EncodedBlob> for EncodedBlob
source§fn eq(&self, other: &EncodedBlob) -> bool
fn eq(&self, other: &EncodedBlob) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for EncodedBlob
impl Serialize for EncodedBlob
source§impl TryFrom<&EncodedBlob> for Blob
impl TryFrom<&EncodedBlob> for Blob
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
source§impl TryFrom<EncodedBlob> for Blob
impl TryFrom<EncodedBlob> for Blob
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.