pub struct Variant {
pub framework: Option<String>,
pub id: Option<String>,
pub kind: Option<String>,
pub label: Option<String>,
pub source: Option<String>,
}Fields§
§framework: Option<String>only when it differs from the template’s
id: Option<String>selector, unique within the template ("react", "grid-3-fluid")
kind: Option<String>the axis it varies: format | page | theme
label: Option<String>human label for the picker
source: Option<String>the repository this shape is forked from; the synthesized default shape carries the template’s own
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Variant
impl<'de> Deserialize<'de> for Variant
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
impl StructuralPartialEq for Variant
Auto Trait Implementations§
impl Freeze for Variant
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnsafeUnpin for Variant
impl UnwindSafe for Variant
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