Struct stam::AnnotationDataBuilder
source · pub struct AnnotationDataBuilder<'a> { /* private fields */ }Expand description
This is the builder for AnnotationData. It contains public IDs or handles that will be resolved.
This structure is usually not instantiated directly but via the AnnotationBuilder.with_data(), AnnotationDataSet.insert_data() or AnnotationDataSet.with_data() or AnnotationDataSet.build_insert_data() methods.
It also does not have its own build() method but is resolved via the aforementioned methods.
Implementations§
source§impl<'a> AnnotationDataBuilder<'a>
impl<'a> AnnotationDataBuilder<'a>
pub fn new() -> Self
pub fn with_id(self, id: BuildItem<'a, AnnotationData>) -> Self
pub fn id(&self) -> &BuildItem<'_, AnnotationData>
pub fn with_dataset(self, dataset: BuildItem<'a, AnnotationDataSet>) -> Self
pub fn dataset(&self) -> &BuildItem<'_, AnnotationDataSet>
pub fn with_key(self, key: BuildItem<'a, DataKey>) -> Self
pub fn key(&self) -> &BuildItem<'_, DataKey>
pub fn with_value(self, value: DataValue) -> Self
pub fn value(&self) -> &DataValue
Trait Implementations§
source§impl<'a> Clone for AnnotationDataBuilder<'a>
impl<'a> Clone for AnnotationDataBuilder<'a>
source§fn clone(&self) -> AnnotationDataBuilder<'a>
fn clone(&self) -> AnnotationDataBuilder<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a> Debug for AnnotationDataBuilder<'a>
impl<'a> Debug for AnnotationDataBuilder<'a>
source§impl<'a> Default for AnnotationDataBuilder<'a>
impl<'a> Default for AnnotationDataBuilder<'a>
source§impl<'de, 'a> Deserialize<'de> for AnnotationDataBuilder<'a>
impl<'de, 'a> Deserialize<'de> for AnnotationDataBuilder<'a>
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
Auto Trait Implementations§
impl<'a> RefUnwindSafe for AnnotationDataBuilder<'a>
impl<'a> Send for AnnotationDataBuilder<'a>
impl<'a> Sync for AnnotationDataBuilder<'a>
impl<'a> Unpin for AnnotationDataBuilder<'a>
impl<'a> UnwindSafe for AnnotationDataBuilder<'a>
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