pub struct FlexIcon {
pub type_field: String,
pub url: String,
pub margin: Option<String>,
pub position: Option<String>,
pub offset_top: Option<String>,
pub offset_bottom: Option<String>,
pub offset_start: Option<String>,
pub offset_end: Option<String>,
pub align: Option<String>,
pub aspect_ratio: Option<String>,
}Fields§
§type_field: String§url: String§margin: Option<String>§position: Option<String>§offset_top: Option<String>§offset_bottom: Option<String>§offset_start: Option<String>§offset_end: Option<String>§align: Option<String>§aspect_ratio: Option<String>Implementations§
Source§impl FlexIcon
impl FlexIcon
Sourcepub fn builder() -> FlexIconBuilder<((), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> FlexIconBuilder<((), (), (), (), (), (), (), (), (), ())>
Create a builder for building FlexIcon.
On the builder, call .type_field(...)(optional), .url(...), .margin(...)(optional), .position(...)(optional), .offset_top(...)(optional), .offset_bottom(...)(optional), .offset_start(...)(optional), .offset_end(...)(optional), .align(...)(optional), .aspect_ratio(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of FlexIcon.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FlexIcon
impl<'de> Deserialize<'de> for FlexIcon
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
Auto Trait Implementations§
impl Freeze for FlexIcon
impl RefUnwindSafe for FlexIcon
impl Send for FlexIcon
impl Sync for FlexIcon
impl Unpin for FlexIcon
impl UnwindSafe for FlexIcon
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