pub struct AttributeBuilder {
pub attribute: Attribute,
}
Fields
attribute: Attribute
Implementations
sourceimpl AttributeBuilder
impl AttributeBuilder
pub fn new(name: String, attr_type: AttributeType) -> AttributeBuilder
pub fn set_pii(self) -> AttributeBuilder
pub fn add_condition(
self,
condition: String,
dependencies: Vec<String>
) -> AttributeBuilder
pub fn add_cardinality(self, cardinality: String) -> AttributeBuilder
pub fn add_conformance(self, conformance: String) -> AttributeBuilder
pub fn add_encoding(self, encoding: Encoding) -> AttributeBuilder
pub fn add_mapping(self, mapping: String) -> AttributeBuilder
pub fn add_sai(self, sai: String) -> AttributeBuilder
pub fn add_format(self, format: String) -> AttributeBuilder
pub fn add_unit(self, metric_system: String, unit: String) -> AttributeBuilder
pub fn add_label(self, labels: HashMap<Language, String>) -> AttributeBuilder
pub fn add_entry_codes(self, entry_codes: EntryCodes) -> AttributeBuilder
pub fn add_entry_codes_mapping(self, mapping: Vec<String>) -> AttributeBuilder
pub fn add_entries(self, entries: Entries) -> AttributeBuilder
pub fn add_information(
self,
information: HashMap<Language, String>
) -> AttributeBuilder
pub fn build(self) -> Attribute
Auto Trait Implementations
impl RefUnwindSafe for AttributeBuilder
impl Send for AttributeBuilder
impl Sync for AttributeBuilder
impl Unpin for AttributeBuilder
impl UnwindSafe for AttributeBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more