pub struct ContentKindElement {
pub kind: ContentKind,
pub scope: Option<String>,
}Expand description
ContentKind element with optional scope attribute, per CPL XSD ContentKindType.
<ContentKind scope="http://www.smpte-ra.org/schemas/2067-3/2013#content-kind">feature</ContentKind>When scope is None, the XSD default applies: CONTENT_KIND_DEFAULT_SCOPE.
Fields§
§kind: ContentKind§scope: Option<String>Scope URI. None means the XSD default applies.
Implementations§
Source§impl ContentKindElement
impl ContentKindElement
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 ContentKindElement
impl Clone for ContentKindElement
Source§fn clone(&self) -> ContentKindElement
fn clone(&self) -> ContentKindElement
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 ContentKindElement
impl Debug for ContentKindElement
Source§impl<'de> Deserialize<'de> for ContentKindElement
impl<'de> Deserialize<'de> for ContentKindElement
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 ContentKindElement
impl Display for ContentKindElement
impl Eq for ContentKindElement
Source§impl From<ContentKind> for ContentKindElement
impl From<ContentKind> for ContentKindElement
Source§fn from(kind: ContentKind) -> Self
fn from(kind: ContentKind) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ContentKindElement
impl PartialEq for ContentKindElement
Source§fn eq(&self, other: &ContentKindElement) -> bool
fn eq(&self, other: &ContentKindElement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq<ContentKind> for ContentKindElement
impl PartialEq<ContentKind> for ContentKindElement
Source§fn eq(&self, other: &ContentKind) -> bool
fn eq(&self, other: &ContentKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContentKindElement
impl Serialize for ContentKindElement
impl StructuralPartialEq for ContentKindElement
Auto Trait Implementations§
impl Freeze for ContentKindElement
impl RefUnwindSafe for ContentKindElement
impl Send for ContentKindElement
impl Sync for ContentKindElement
impl Unpin for ContentKindElement
impl UnsafeUnpin for ContentKindElement
impl UnwindSafe for ContentKindElement
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