pub struct UnionBody { /* private fields */ }
Expand description
Corresponds to the grammar rule union_body
.
Implementations§
source§impl UnionBody
impl UnionBody
pub fn with_variants(self, variants: Vec<TypeVariant>) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for UnionBody
impl<'de> Deserialize<'de> for UnionBody
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 HasAnnotations for UnionBody
impl HasAnnotations for UnionBody
fn has_annotations(&self) -> bool
fn annotations_len(&self) -> usize
fn annotations(&self) -> impl Iterator<Item = &Annotation>
fn annotations_mut(&mut self) -> impl Iterator<Item = &mut Annotation>
fn add_to_annotations<I>(&mut self, value: I)where
I: Into<Annotation>,
fn extend_annotations<I>(&mut self, extension: I)where
I: IntoIterator<Item = Annotation>,
fn has_annotation_properties(&self) -> bool
fn annotation_properties(&self) -> impl Iterator<Item = &AnnotationProperty>
fn has_rdf_type(&self, type_id: &IdentifierReference) -> bool
fn rdf_types(&self) -> impl Iterator<Item = &IdentifierReference>
fn preferred_label(&self) -> impl Iterator<Item = &LanguageString>
fn alternate_labels(&self) -> impl Iterator<Item = &LanguageString>
fn descriptions(&self) -> impl Iterator<Item = &LanguageString>
fn definitions(&self) -> impl Iterator<Item = &LanguageString>
fn has_constraints(&self) -> bool
fn annotation_constraints(&self) -> impl Iterator<Item = &Constraint>
source§impl HasSourceSpan for UnionBody
impl HasSourceSpan for UnionBody
fn with_source_span(self, span: Span) -> Self
fn source_span(&self) -> Option<&Span>
fn set_source_span(&mut self, span: Span)
fn unset_source_span(&mut self)
fn has_source_span(&self) -> bool
source§impl HasVariants for UnionBody
impl HasVariants for UnionBody
type Variant = TypeVariant
fn has_variants(&self) -> bool
fn variants_len(&self) -> usize
fn variants(&self) -> impl Iterator<Item = &Self::Variant>
fn variants_mut(&mut self) -> impl Iterator<Item = &mut Self::Variant>
fn add_to_variants(&mut self, value: Self::Variant)
fn extend_variants<I>(&mut self, extension: I)where
I: IntoIterator<Item = Self::Variant>,
source§impl References for UnionBody
impl References for UnionBody
fn referenced_annotations<'a>( &'a self, names: &mut HashSet<&'a IdentifierReference>, )
fn referenced_types<'a>(&'a self, names: &mut HashSet<&'a IdentifierReference>)
Auto Trait Implementations§
impl Freeze for UnionBody
impl RefUnwindSafe for UnionBody
impl Send for UnionBody
impl Sync for UnionBody
impl Unpin for UnionBody
impl UnwindSafe for UnionBody
Blanket Implementations§
source§impl<A> AnnotationBuilder for Awhere
A: HasAnnotations,
impl<A> AnnotationBuilder for Awhere
A: HasAnnotations,
fn with_predicate<I, V>(self, predicate: I, value: V) -> A
fn with_type<I>(self, name: I) -> Self
fn with_super_class<I>(self, name: I) -> Self
fn with_equivalent_class<I>(self, name: I) -> Self
fn with_super_property<I>(self, name: I) -> Self
fn with_domain<I>(self, name: I) -> Self
fn with_comment<S>(self, comment: S) -> Self
fn with_label<S>(self, label: S) -> Self
fn with_see_also_str(self, resource: &str) -> Selfwhere
Self: Sized,
fn with_see_also(self, resource: Url) -> Selfwhere
Self: Sized,
fn with_see_also_ref<I>(self, resource: I) -> Self
fn with_is_defined_by(self, resource: Url) -> Selfwhere
Self: Sized,
fn with_is_defined_by_str(self, resource: &str) -> Selfwhere
Self: Sized,
fn with_is_defined_by_ref<I>(self, resource: I) -> Self
fn with_range<I>(self, name: I) -> Self
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)