pub struct ImageLabel {
pub name: String,
pub value: Option<String>,
}
Expand description
ImageLabel represents a label applied to the resulting image.
Fields§
§name: String
name defines the name of the label. It must have non-zero length.
value: Option<String>
value defines the literal value of the label.
Trait Implementations§
Source§impl Clone for ImageLabel
impl Clone for ImageLabel
Source§fn clone(&self) -> ImageLabel
fn clone(&self) -> ImageLabel
Returns a duplicate 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 ImageLabel
impl Debug for ImageLabel
Source§impl Default for ImageLabel
impl Default for ImageLabel
Source§fn default() -> ImageLabel
fn default() -> ImageLabel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImageLabel
impl<'de> Deserialize<'de> for ImageLabel
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 ImageLabel
impl PartialEq for ImageLabel
Source§impl Serialize for ImageLabel
impl Serialize for ImageLabel
impl StructuralPartialEq for ImageLabel
Auto Trait Implementations§
impl Freeze for ImageLabel
impl RefUnwindSafe for ImageLabel
impl Send for ImageLabel
impl Sync for ImageLabel
impl Unpin for ImageLabel
impl UnwindSafe for ImageLabel
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