pub struct EntityName {
pub object: String,
pub entity_type: String,
pub zone: String,
}Expand description
Represents an entity name in NBP.
Fields§
§object: String§entity_type: String§zone: StringImplementations§
Source§impl EntityName
impl EntityName
Sourcepub fn from_bytes(data: &[u8]) -> Result<(Self, usize), String>
pub fn from_bytes(data: &[u8]) -> Result<(Self, usize), String>
Parses an entity name (object, type, zone) from raw bytes.
Sourcepub fn to_bytes(&self, buffer: &mut [u8]) -> Result<usize, String>
pub fn to_bytes(&self, buffer: &mut [u8]) -> Result<usize, String>
Serializes the entity name into a byte slice. Returns the size of the serialized data.
pub fn matches(&self, pattern: &EntityName) -> bool
pub fn fully_qualified(&self) -> bool
Trait Implementations§
Source§impl Debug for EntityName
impl Debug for EntityName
Source§impl Display for EntityName
impl Display for EntityName
Source§impl PartialEq for EntityName
impl PartialEq for EntityName
Source§fn eq(&self, other: &EntityName) -> bool
fn eq(&self, other: &EntityName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<&str> for EntityName
impl TryFrom<&str> for EntityName
impl Eq for EntityName
impl StructuralPartialEq for EntityName
Auto Trait Implementations§
impl Freeze for EntityName
impl RefUnwindSafe for EntityName
impl Send for EntityName
impl Sync for EntityName
impl Unpin for EntityName
impl UnsafeUnpin for EntityName
impl UnwindSafe for EntityName
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