#[non_exhaustive]pub struct Experiment {
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 Experiment
impl Experiment
pub fn new( namespace: impl TryInto<Namespace, Error = BuildError>, display_id: impl TryInto<DisplayId, Error = BuildError>, ) -> Result<Self, BuildError>
pub fn builder( namespace: impl TryInto<Namespace, Error = BuildError>, display_id: impl TryInto<DisplayId, Error = BuildError>, ) -> Result<ExperimentBuilder, BuildError>
Trait Implementations§
Source§impl Clone for Experiment
impl Clone for Experiment
Source§fn clone(&self) -> Experiment
fn clone(&self) -> Experiment
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 Experiment
impl Debug for Experiment
Source§impl PartialEq for Experiment
impl PartialEq for Experiment
Source§fn eq(&self, other: &Experiment) -> bool
fn eq(&self, other: &Experiment) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl SbolIdentified for Experiment
impl SbolIdentified for Experiment
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 Experiment
impl SbolTopLevel for Experiment
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.Source§impl ToRdf for Experiment
impl ToRdf for Experiment
fn to_rdf_triples(&self) -> Result<Vec<Triple>, BuildError>
Source§impl TryFromObject for Experiment
impl TryFromObject for Experiment
fn try_from_object(object: &Object) -> Option<Self>
impl Eq for Experiment
impl StructuralPartialEq for Experiment
Auto Trait Implementations§
impl Freeze for Experiment
impl RefUnwindSafe for Experiment
impl Send for Experiment
impl Sync for Experiment
impl Unpin for Experiment
impl UnsafeUnpin for Experiment
impl UnwindSafe for Experiment
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