pub struct MarkerLabelElement {
pub label: MarkerLabel,
pub scope: Option<String>,
}Expand description
Marker Label element with optional scope attribute, per CPL XSD LabelType.
<Label scope="http://www.smpte-ra.org/schemas/2067-3/2013#standard-markers">FFOC</Label>When scope is None, the XSD default applies: MARKER_LABEL_DEFAULT_SCOPE.
Fields§
§label: MarkerLabel§scope: Option<String>Scope URI. None means the XSD default applies.
Implementations§
Source§impl MarkerLabelElement
impl MarkerLabelElement
Sourcepub fn effective_scope(&self) -> &str
pub fn effective_scope(&self) -> &str
Returns the effective scope, falling back to the XSD default.
Trait Implementations§
Source§impl Clone for MarkerLabelElement
impl Clone for MarkerLabelElement
Source§fn clone(&self) -> MarkerLabelElement
fn clone(&self) -> MarkerLabelElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MarkerLabelElement
impl Debug for MarkerLabelElement
Source§impl<'de> Deserialize<'de> for MarkerLabelElement
impl<'de> Deserialize<'de> for MarkerLabelElement
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 Display for MarkerLabelElement
impl Display for MarkerLabelElement
impl Eq for MarkerLabelElement
Source§impl From<MarkerLabel> for MarkerLabelElement
impl From<MarkerLabel> for MarkerLabelElement
Source§fn from(label: MarkerLabel) -> Self
fn from(label: MarkerLabel) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MarkerLabelElement
impl PartialEq for MarkerLabelElement
Source§fn eq(&self, other: &MarkerLabelElement) -> bool
fn eq(&self, other: &MarkerLabelElement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq<MarkerLabel> for MarkerLabelElement
impl PartialEq<MarkerLabel> for MarkerLabelElement
Source§fn eq(&self, other: &MarkerLabel) -> bool
fn eq(&self, other: &MarkerLabel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MarkerLabelElement
impl Serialize for MarkerLabelElement
impl StructuralPartialEq for MarkerLabelElement
Auto Trait Implementations§
impl Freeze for MarkerLabelElement
impl RefUnwindSafe for MarkerLabelElement
impl Send for MarkerLabelElement
impl Sync for MarkerLabelElement
impl Unpin for MarkerLabelElement
impl UnsafeUnpin for MarkerLabelElement
impl UnwindSafe for MarkerLabelElement
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