pub struct ModuleIdentityData { /* private fields */ }Expand description
Exact module-scoped data for one resolved OID identity declaration.
Multiple records may have the same numeric OID. This preserves aliases and declarations that lost global OID-tree ownership to another module or to an object, group, notification, or conformance definition.
Implementations§
Source§impl ModuleIdentityData
impl ModuleIdentityData
Sourcepub fn kind(&self) -> ModuleIdentityKind
pub fn kind(&self) -> ModuleIdentityKind
Return the declaration kind independently of global OID ownership.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Return the declared description text.
Sourcepub fn last_updated(&self) -> &str
pub fn last_updated(&self) -> &str
Return the LAST-UPDATED value for a MODULE-IDENTITY.
Sourcepub fn organization(&self) -> &str
pub fn organization(&self) -> &str
Return the ORGANIZATION text for a MODULE-IDENTITY.
Sourcepub fn contact_info(&self) -> &str
pub fn contact_info(&self) -> &str
Return the CONTACT-INFO text for a MODULE-IDENTITY.
Sourcepub fn revisions(&self) -> &[Revision]
pub fn revisions(&self) -> &[Revision]
Return the revisions for a MODULE-IDENTITY in declaration order.
Sourcepub fn oid_refs(&self) -> &[OidRef]
pub fn oid_refs(&self) -> &[OidRef]
Return symbolic references with exact resolved module/version provenance.
Sourcepub fn declared_oid_parent(&self) -> Option<&OidRef>
pub fn declared_oid_parent(&self) -> Option<&OidRef>
Return the exact symbolic parent reference used by this declaration.
Sourcepub fn declared_oid_parent_name(&self) -> &str
pub fn declared_oid_parent_name(&self) -> &str
Return the exact symbolic parent name, or an empty string when the assignment used no exact symbolic parent.
Sourcepub fn range(&self) -> SourceRange
pub fn range(&self) -> SourceRange
Return the complete source range of the declaration.
Trait Implementations§
Source§impl Clone for ModuleIdentityData
impl Clone for ModuleIdentityData
Source§fn clone(&self) -> ModuleIdentityData
fn clone(&self) -> ModuleIdentityData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more