pub struct Base64Source {
pub media_type: String,
pub data: String,
}Expand description
Bytes inline. media_type is what the API dispatches on, so it must be the
real type of data — “image/png”, “application/pdf” and so on.
Fields§
§media_type: String§data: StringStandard base64, no data-URL prefix.
Trait Implementations§
Source§impl Clone for Base64Source
impl Clone for Base64Source
Source§fn clone(&self) -> Base64Source
fn clone(&self) -> Base64Source
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Base64Source
impl Debug for Base64Source
Source§impl Default for Base64Source
impl Default for Base64Source
Source§fn default() -> Base64Source
fn default() -> Base64Source
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Base64Source
impl<'de> Deserialize<'de> for Base64Source
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 PartialEq for Base64Source
impl PartialEq for Base64Source
Source§impl Serialize for Base64Source
impl Serialize for Base64Source
impl StructuralPartialEq for Base64Source
Auto Trait Implementations§
impl Freeze for Base64Source
impl RefUnwindSafe for Base64Source
impl Send for Base64Source
impl Sync for Base64Source
impl Unpin for Base64Source
impl UnsafeUnpin for Base64Source
impl UnwindSafe for Base64Source
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