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
A single <domain> definition (§7.3.4.4.2).
Fields§
§name: StringName of the domain (attribute name).
domain_id: u32Numeric domain ID (attribute domain_id, 0..=232).
base_name: Option<String>Spec §7.3.4.4.2: optional base_name reference to a previously
defined domain. The inheritance resolver combines the
register_types and topics of the parent chain with the local
definitions.
register_types: Vec<RegisterType>Type registrations within this domain.
topics: Vec<TopicEntry>Topic definitions within this 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>
Returns the type registration with the given name.
Sourcepub fn topic(&self, name: &str) -> Option<&TopicEntry>
pub fn topic(&self, name: &str) -> Option<&TopicEntry>
Returns the topic with the given name.
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
impl Eq for DomainEntry
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 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