pub struct DDMap { /* private fields */ }Implementations§
Source§impl DDMap
impl DDMap
pub fn new(name: Arc<str>) -> Self
pub fn new_with_values(name: Arc<str>, msg_type: Arc<str>, admin: bool) -> Self
pub fn add_field(&mut self, field: Arc<DDField>)
pub fn is_field(&self, tag: Tag) -> bool
pub fn get_field(&self, tag: Tag) -> Option<&Arc<DDField>>
pub fn add_group(&mut self, group: Arc<DDGroup>)
pub fn is_group(&self, tag: Tag) -> bool
pub fn get_group(&self, tag: Tag) -> Option<&Arc<DDGroup>>
pub fn required_fields(&self) -> &BTreeSet<Tag>
pub fn required_fields_mut(&mut self) -> &mut BTreeSet<Tag>
pub fn add_required_field(&mut self, tag: Tag)
pub fn name(&self) -> &Arc<str> ⓘ
pub fn fields(&self) -> &BTreeMap<Tag, Arc<DDField>>
pub fn groups(&self) -> &BTreeMap<Tag, Arc<DDGroup>>
pub fn admin(&self) -> bool
pub fn msg_type(&self) -> &str
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DDMap
impl RefUnwindSafe for DDMap
impl Send for DDMap
impl Sync for DDMap
impl Unpin for DDMap
impl UnsafeUnpin for DDMap
impl UnwindSafe for DDMap
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