pub struct Title {
pub text: Option<String>,
pub sub_text: Option<String>,
pub link: Option<String>,
pub left: Option<Position>,
pub top: Option<Position>,
pub right: Option<Position>,
pub bottom: Option<Position>,
pub extra: Option<Value>,
}
Expand description
Title component
Fields§
§text: Option<String>
Main title text
sub_text: Option<String>
Subtitle text
link: Option<String>
Link for title
left: Option<Position>
Left position (Keyword, numeric px, percent, or other)
top: Option<Position>
Top position (Keyword, numeric px, percent, or other)
right: Option<Position>
Right position (Keyword, numeric px, percent, or other)
bottom: Option<Position>
Bottom position (Keyword, numeric px, percent, or other)
extra: Option<Value>
Additional raw title options
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Title
impl<'de> Deserialize<'de> for Title
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 Title
impl RefUnwindSafe for Title
impl Send for Title
impl Sync for Title
impl Unpin for Title
impl UnwindSafe for Title
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