pub enum SystemLayoutContentItem {
    Group {
        content: SystemLayoutContent,
        label: Option<StaffLabel>,
        symbol: Option<StaffSymbol>,
    },
    Staff {
        label: Option<StaffLabel>,
        labelref: Option<StaffLabelref>,
        sources: Vec<SystemLayoutContentItemSourcesItem>,
        symbol: Option<StaffSymbol>,
    },
}Expand description
SystemLayoutContentItem
JSON schema
{
 "anyOf": [
   {
     "type": "object",
     "required": [
       "content",
       "type"
     ],
     "properties": {
       "content": {
         "$ref": "#/$defs/system-layout-content"
       },
       "label": {
         "$ref": "#/$defs/staff-label"
       },
       "symbol": {
         "$ref": "#/$defs/staff-symbol"
       },
       "type": {
         "type": "string",
         "const": "group"
       }
     },
     "additionalProperties": false
   },
   {
     "type": "object",
     "required": [
       "sources",
       "type"
     ],
     "properties": {
       "label": {
         "$ref": "#/$defs/staff-label"
       },
       "labelref": {
         "$ref": "#/$defs/staff-labelref"
       },
       "sources": {
         "type": "array",
         "items": {
           "type": "object",
           "required": [
             "part"
           ],
           "properties": {
             "label": {
               "$ref": "#/$defs/staff-label"
             },
             "labelref": {
               "$ref": "#/$defs/staff-labelref"
             },
             "part": {
               "$ref": "#/$defs/id"
             },
             "staff": {
               "$ref": "#/$defs/staff-number"
             },
             "stem": {
               "$ref": "#/$defs/stem-direction"
             },
             "voice": {
               "$ref": "#/$defs/voice-name"
             }
           },
           "additionalProperties": false
         }
       },
       "symbol": {
         "$ref": "#/$defs/staff-symbol"
       },
       "type": {
         "type": "string",
         "const": "staff"
       }
     },
     "additionalProperties": false
   }
 ]
}Variants§
Group
Staff
Fields
§
label: Option<StaffLabel>§
labelref: Option<StaffLabelref>§
sources: Vec<SystemLayoutContentItemSourcesItem>§
symbol: Option<StaffSymbol>Trait Implementations§
Source§impl Clone for SystemLayoutContentItem
 
impl Clone for SystemLayoutContentItem
Source§fn clone(&self) -> SystemLayoutContentItem
 
fn clone(&self) -> SystemLayoutContentItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for SystemLayoutContentItem
 
impl Debug for SystemLayoutContentItem
Source§impl<'de> Deserialize<'de> for SystemLayoutContentItem
 
impl<'de> Deserialize<'de> for SystemLayoutContentItem
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 From<&SystemLayoutContentItem> for SystemLayoutContentItem
 
impl From<&SystemLayoutContentItem> for SystemLayoutContentItem
Source§fn from(value: &SystemLayoutContentItem) -> Self
 
fn from(value: &SystemLayoutContentItem) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SystemLayoutContentItem
impl RefUnwindSafe for SystemLayoutContentItem
impl Send for SystemLayoutContentItem
impl Sync for SystemLayoutContentItem
impl Unpin for SystemLayoutContentItem
impl UnwindSafe for SystemLayoutContentItem
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