pub struct Legend {
pub data: Option<Vec<String>>,
pub orient: Option<LegendOrient>,
pub left: Option<Position>,
pub right: Option<Position>,
pub top: Option<Position>,
pub bottom: Option<Position>,
}
Expand description
Legend component
Fields§
§data: Option<Vec<String>>
Data items in the legend
orient: Option<LegendOrient>
Legend orientation: vertical or horizontal
left: Option<Position>
Left position (Keyword, numeric px, percent, or other)
right: Option<Position>
§top: Option<Position>
§bottom: Option<Position>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Legend
impl<'de> Deserialize<'de> for Legend
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 Legend
impl RefUnwindSafe for Legend
impl Send for Legend
impl Sync for Legend
impl Unpin for Legend
impl UnwindSafe for Legend
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