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: String
Raw data, encoded using base64 so it can be serialized using JSON.
mime_type: String
MIME 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 for EncodedBlob
impl PartialEq 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.
impl Eq for EncodedBlob
impl StructuralPartialEq for EncodedBlob
Auto Trait Implementations§
impl Freeze for EncodedBlob
impl RefUnwindSafe for EncodedBlob
impl Send for EncodedBlob
impl Sync for EncodedBlob
impl Unpin for EncodedBlob
impl UnwindSafe for EncodedBlob
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