pub struct Image {Show 17 fields
pub image_type: Option<i32>,
pub dimension: Option<Dimension>,
pub image_url: Option<String>,
pub alt_text_localized: Option<String>,
pub secure_url: Option<String>,
pub position_in_sequence: Option<i32>,
pub supports_fife_url_options: Option<bool>,
pub citation: Option<Citation>,
pub duration_seconds: Option<i32>,
pub fill_color_rgb: Option<String>,
pub autogen: Option<bool>,
pub attribution: Option<Attribution>,
pub background_color_rgb: Option<String>,
pub palette: Option<ImagePalette>,
pub device_class: Option<i32>,
pub supports_fife_monogram_option: Option<bool>,
pub image_url_alt: Option<String>,
}Fields§
§image_type: Option<i32>§dimension: Option<Dimension>§image_url: Option<String>§alt_text_localized: Option<String>§secure_url: Option<String>§position_in_sequence: Option<i32>§supports_fife_url_options: Option<bool>§citation: Option<Citation>§duration_seconds: Option<i32>§fill_color_rgb: Option<String>§autogen: Option<bool>§attribution: Option<Attribution>§background_color_rgb: Option<String>§palette: Option<ImagePalette>§device_class: Option<i32>§supports_fife_monogram_option: Option<bool>§image_url_alt: Option<String>Implementations§
Source§impl Image
impl Image
Sourcepub fn image_type(&self) -> i32
pub fn image_type(&self) -> i32
Returns the value of image_type, or the default value if image_type is unset.
Sourcepub fn image_url(&self) -> &str
pub fn image_url(&self) -> &str
Returns the value of image_url, or the default value if image_url is unset.
Sourcepub fn alt_text_localized(&self) -> &str
pub fn alt_text_localized(&self) -> &str
Returns the value of alt_text_localized, or the default value if alt_text_localized is unset.
Sourcepub fn secure_url(&self) -> &str
pub fn secure_url(&self) -> &str
Returns the value of secure_url, or the default value if secure_url is unset.
Sourcepub fn position_in_sequence(&self) -> i32
pub fn position_in_sequence(&self) -> i32
Returns the value of position_in_sequence, or the default value if position_in_sequence is unset.
Sourcepub fn supports_fife_url_options(&self) -> bool
pub fn supports_fife_url_options(&self) -> bool
Returns the value of supports_fife_url_options, or the default value if supports_fife_url_options is unset.
Sourcepub fn duration_seconds(&self) -> i32
pub fn duration_seconds(&self) -> i32
Returns the value of duration_seconds, or the default value if duration_seconds is unset.
Sourcepub fn fill_color_rgb(&self) -> &str
pub fn fill_color_rgb(&self) -> &str
Returns the value of fill_color_rgb, or the default value if fill_color_rgb is unset.
Sourcepub fn autogen(&self) -> bool
pub fn autogen(&self) -> bool
Returns the value of autogen, or the default value if autogen is unset.
Sourcepub fn background_color_rgb(&self) -> &str
pub fn background_color_rgb(&self) -> &str
Returns the value of background_color_rgb, or the default value if background_color_rgb is unset.
Sourcepub fn device_class(&self) -> i32
pub fn device_class(&self) -> i32
Returns the value of device_class, or the default value if device_class is unset.
Sourcepub fn supports_fife_monogram_option(&self) -> bool
pub fn supports_fife_monogram_option(&self) -> bool
Returns the value of supports_fife_monogram_option, or the default value if supports_fife_monogram_option is unset.
Sourcepub fn image_url_alt(&self) -> &str
pub fn image_url_alt(&self) -> &str
Returns the value of image_url_alt, or the default value if image_url_alt is unset.
Trait Implementations§
Source§impl Message for Image
impl Message for Image
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.