Struct norad::designspace::Source
source · pub struct Source {
pub familyname: Option<String>,
pub stylename: Option<String>,
pub name: Option<String>,
pub filename: String,
pub layer: Option<String>,
pub location: Vec<Dimension>,
}
Expand description
A source.
Fields§
§familyname: Option<String>
The family name of the source font.
stylename: Option<String>
The style name of the source font.
name: Option<String>
A unique name that can be used to identify this font if it needs to be referenced elsewhere.
filename: String
A path to the source file, relative to the root path of this document.
The path can be at the same level as the document or lower.
layer: Option<String>
The name of the layer in the source file.
If no layer attribute is given assume the foreground layer should be used.
location: Vec<Dimension>
Location in designspace coordinates.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Source
impl<'de> Deserialize<'de> for Source
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
source§impl PartialEq for Source
impl PartialEq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
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