pub struct MeasureBuilder { /* private fields */ }Expand description
Builder for Measure.
Implementations§
Source§impl MeasureBuilder
impl MeasureBuilder
pub fn name(self, value: impl Into<String>) -> Self
pub fn description(self, value: impl Into<String>) -> Self
pub fn derived_from(self, values: impl IntoIterator<Item = Resource>) -> Self
pub fn add_derived_from(self, value: Resource) -> Self
pub fn generated_by(self, values: impl IntoIterator<Item = Resource>) -> Self
pub fn add_generated_by(self, value: Resource) -> Self
pub fn measures(self, values: impl IntoIterator<Item = Resource>) -> Self
pub fn add_measure(self, value: Resource) -> Self
Sourcepub fn extension(self, predicate: Iri, value: Term) -> Self
pub fn extension(self, predicate: Iri, value: Term) -> Self
Attach a non-SBOL annotation triple. The predicate must be outside the SBOL, PROV, and OM vocabularies; predicates inside those vocabularies belong on dedicated setters and are emitted twice if pushed here.
pub fn types(self, values: impl IntoIterator<Item = Iri>) -> Self
pub fn add_type(self, value: Iri) -> Self
pub fn has_unit(self, value: Resource) -> Self
pub fn has_numerical_value(self, value: f64) -> Self
pub fn build(self) -> Result<Measure, BuildError>
Trait Implementations§
Source§impl Clone for MeasureBuilder
impl Clone for MeasureBuilder
Source§fn clone(&self) -> MeasureBuilder
fn clone(&self) -> MeasureBuilder
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 moreAuto Trait Implementations§
impl Freeze for MeasureBuilder
impl RefUnwindSafe for MeasureBuilder
impl Send for MeasureBuilder
impl Sync for MeasureBuilder
impl Unpin for MeasureBuilder
impl UnsafeUnpin for MeasureBuilder
impl UnwindSafe for MeasureBuilder
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