pub enum TemplateImageSize {
Cover,
Contain,
}
Expand description
TemplateImageSize : Size of the image. This is only for the imageSize
in ButtonsTemplate. Specify one of the following values: cover
: The image fills the entire image area. Parts of the image that do not fit in the area are not displayed. contain
: The entire image is displayed in the image area. A background is displayed in the unused areas to the left and right of vertical images and in the areas above and below horizontal images.
Size of the image. This is only for the imageSize
in ButtonsTemplate. Specify one of the following values: cover
: The image fills the entire image area. Parts of the image that do not fit in the area are not displayed. contain
: The entire image is displayed in the image area. A background is displayed in the unused areas to the left and right of vertical images and in the areas above and below horizontal images.
Variants§
Trait Implementations§
Source§impl Clone for TemplateImageSize
impl Clone for TemplateImageSize
Source§fn clone(&self) -> TemplateImageSize
fn clone(&self) -> TemplateImageSize
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TemplateImageSize
impl Debug for TemplateImageSize
Source§impl Default for TemplateImageSize
impl Default for TemplateImageSize
Source§fn default() -> TemplateImageSize
fn default() -> TemplateImageSize
Source§impl<'de> Deserialize<'de> for TemplateImageSize
impl<'de> Deserialize<'de> for TemplateImageSize
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>,
Source§impl Display for TemplateImageSize
impl Display for TemplateImageSize
Source§impl Hash for TemplateImageSize
impl Hash for TemplateImageSize
Source§impl Ord for TemplateImageSize
impl Ord for TemplateImageSize
Source§fn cmp(&self, other: &TemplateImageSize) -> Ordering
fn cmp(&self, other: &TemplateImageSize) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for TemplateImageSize
impl PartialEq for TemplateImageSize
Source§impl PartialOrd for TemplateImageSize
impl PartialOrd for TemplateImageSize
Source§impl Serialize for TemplateImageSize
impl Serialize for TemplateImageSize
impl Copy for TemplateImageSize
impl Eq for TemplateImageSize
impl StructuralPartialEq for TemplateImageSize
Auto Trait Implementations§
impl Freeze for TemplateImageSize
impl RefUnwindSafe for TemplateImageSize
impl Send for TemplateImageSize
impl Sync for TemplateImageSize
impl Unpin for TemplateImageSize
impl UnwindSafe for TemplateImageSize
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key
and return true
if they are equal.