pub struct ImageAsset {
pub kind: String,
pub format: String,
pub data_base64: String,
}Expand description
An image asset, referenced by its key wherever it appears in a request string.
Fields§
§kind: String§format: Stringpng, jpg or jpeg.
data_base64: StringStandard base64 with padding, no data: prefix.
Implementations§
Trait Implementations§
Source§impl Clone for ImageAsset
impl Clone for ImageAsset
Source§impl Debug for ImageAsset
impl Debug for ImageAsset
Source§impl<'de> Deserialize<'de> for ImageAsset
impl<'de> Deserialize<'de> for ImageAsset
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
impl Eq for ImageAsset
Source§impl PartialEq for ImageAsset
impl PartialEq for ImageAsset
Source§impl Serialize for ImageAsset
impl Serialize for ImageAsset
impl StructuralPartialEq for ImageAsset
Auto Trait Implementations§
impl Forget for ImageAsset
impl Freeze for ImageAsset
impl Move for ImageAsset
impl RefUnwindSafe for ImageAsset
impl Send for ImageAsset
impl Sync for ImageAsset
impl Unpin for ImageAsset
impl UnsafeUnpin for ImageAsset
impl UnwindSafe for ImageAsset
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.