pub struct Label {Show 20 fields
pub fill_color: Option<i32>,
pub fill_rule: Option<ShapeFillRuleType>,
pub stroke_color: Option<i32>,
pub stroke_width: Option<f32>,
pub stroke_width_unit: UnitsLength,
pub stroke_dash_array: Option<String>,
pub text: Option<String>,
pub font_family: Option<FontFamilyType>,
pub font_size: Option<i32>,
pub font_size_unit: UnitsLength,
pub font_style: Option<ShapeFontStyleType>,
pub locked: Option<bool>,
pub id: String,
pub the_z: Option<i32>,
pub the_t: Option<i32>,
pub the_c: Option<i32>,
pub x: f32,
pub y: f32,
pub transform: Option<AffineTransform>,
pub annotation_ref: Vec<AnnotationRef>,
}Fields§
§fill_color: Option<i32>§fill_rule: Option<ShapeFillRuleType>§stroke_color: Option<i32>§stroke_width: Option<f32>§stroke_width_unit: UnitsLength§stroke_dash_array: Option<String>§text: Option<String>§font_family: Option<FontFamilyType>§font_size: Option<i32>§font_size_unit: UnitsLength§font_style: Option<ShapeFontStyleType>§locked: Option<bool>§id: String§the_z: Option<i32>§the_t: Option<i32>§the_c: Option<i32>§x: f32§y: f32§transform: Option<AffineTransform>§annotation_ref: Vec<AnnotationRef>Implementations§
Source§impl Label
impl Label
pub fn default_stroke_width_unit() -> UnitsLength
pub fn default_font_size_unit() -> UnitsLength
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Label
impl<'de> Deserialize<'de> for Label
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 Label
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnwindSafe for Label
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