#[non_exhaustive]pub struct Collection {
pub identity: Resource,
pub identified: IdentifiedData,
pub top_level: TopLevelData,
pub members: Vec<Resource>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.identity: Resource§identified: IdentifiedData§top_level: TopLevelData§members: Vec<Resource>Implementations§
Source§impl Collection
impl Collection
pub fn new( namespace: impl TryInto<Namespace, Error = LexError>, display_id: impl TryInto<DisplayId, Error = LexError>, ) -> Result<Self, BuildError>
pub fn builder( namespace: impl TryInto<Namespace, Error = LexError>, display_id: impl TryInto<DisplayId, Error = LexError>, ) -> Result<CollectionBuilder, BuildError>
Trait Implementations§
Source§impl Clone for Collection
impl Clone for Collection
Source§impl Debug for Collection
impl Debug for Collection
impl Eq for Collection
Source§impl PartialEq for Collection
impl PartialEq for Collection
Source§impl SbolIdentified for Collection
impl SbolIdentified for Collection
Source§fn identified_data(&self) -> &IdentifiedData
fn identified_data(&self) -> &IdentifiedData
Returns the underlying
IdentifiedData this accessor reads from.
Implementors only need to forward to their identified field.Source§fn display_id(&self) -> Option<&str>
fn display_id(&self) -> Option<&str>
The object’s
sbol:displayId, if present.Source§fn description(&self) -> Option<&str>
fn description(&self) -> Option<&str>
The object’s
sbol:description, if present.Source§fn derived_from(&self) -> &[Resource]
fn derived_from(&self) -> &[Resource]
Resources this object lists as
prov:wasDerivedFrom.Source§fn generated_by(&self) -> &[Resource]
fn generated_by(&self) -> &[Resource]
Resources this object lists as
prov:wasGeneratedBy.Source§fn extensions(&self) -> &[ExtensionTriple]
fn extensions(&self) -> &[ExtensionTriple]
Non-SBOL annotation triples preserved on this object’s identity.
Source§impl SbolTopLevel for Collection
impl SbolTopLevel for Collection
Source§fn top_level_data(&self) -> &TopLevelData
fn top_level_data(&self) -> &TopLevelData
Returns the underlying
TopLevelData this accessor reads from.
Implementors only need to forward to their top_level field.Source§fn namespace(&self) -> Option<&Iri>
fn namespace(&self) -> Option<&Iri>
The object’s
sbol:hasNamespace, if present. TopLevel objects in
well-formed SBOL documents always carry a namespace, but the
underlying graph may omit it. Callers that require a namespace
should validate the document first.Source§fn attachments(&self) -> &[Resource]
fn attachments(&self) -> &[Resource]
sbol:Attachment resources attached via sbol:hasAttachment.impl StructuralPartialEq for Collection
Source§impl ToRdf for Collection
impl ToRdf for Collection
fn to_rdf_triples(&self) -> Result<Vec<Triple>, BuildError>
Source§impl TryFromObject for Collection
impl TryFromObject for Collection
fn try_from_object(object: &Object) -> Option<Self>
Auto Trait Implementations§
impl Freeze for Collection
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnsafeUnpin for Collection
impl UnwindSafe for Collection
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