pub struct DomainEntry {
pub name: String,
pub domain_id: u32,
pub base_name: Option<String>,
pub register_types: Vec<RegisterType>,
pub topics: Vec<TopicEntry>,
}Expand description
Einzelne <domain>-Definition (§7.3.4.4.2).
Fields§
§name: StringName der Domain (Attribut name).
domain_id: u32Numerische Domain-ID (Attribut domain_id, 0..=232).
base_name: Option<String>Spec §7.3.4.4.2: Optionaler base_name-Verweis auf eine zuvor
definierte Domain. Inheritance-Resolver kombiniert
register_types und topics der Eltern-Kette mit den lokalen
Definitionen.
register_types: Vec<RegisterType>Type-Registrierungen innerhalb dieser Domain.
topics: Vec<TopicEntry>Topic-Definitionen innerhalb dieser Domain.
Implementations§
Source§impl DomainEntry
impl DomainEntry
Sourcepub fn register_type(&self, name: &str) -> Option<&RegisterType>
pub fn register_type(&self, name: &str) -> Option<&RegisterType>
Liefert die Type-Registrierung mit dem angegebenen Namen.
Sourcepub fn topic(&self, name: &str) -> Option<&TopicEntry>
pub fn topic(&self, name: &str) -> Option<&TopicEntry>
Liefert das Topic mit dem angegebenen Namen.
Trait Implementations§
Source§impl Clone for DomainEntry
impl Clone for DomainEntry
Source§fn clone(&self) -> DomainEntry
fn clone(&self) -> DomainEntry
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 DomainEntry
impl Debug for DomainEntry
Source§impl Default for DomainEntry
impl Default for DomainEntry
Source§fn default() -> DomainEntry
fn default() -> DomainEntry
Returns the “default value” for a type. Read more
Source§impl PartialEq for DomainEntry
impl PartialEq for DomainEntry
Source§fn eq(&self, other: &DomainEntry) -> bool
fn eq(&self, other: &DomainEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DomainEntry
impl StructuralPartialEq for DomainEntry
Auto Trait Implementations§
impl Freeze for DomainEntry
impl RefUnwindSafe for DomainEntry
impl Send for DomainEntry
impl Sync for DomainEntry
impl Unpin for DomainEntry
impl UnsafeUnpin for DomainEntry
impl UnwindSafe for DomainEntry
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