pub struct EntityType {
    pub kind: EntityKind,
    pub domain: PlatformDomain,
    pub country: Country,
    pub category: u8,
    pub subcategory: u8,
    pub specific: u8,
    pub extra: u8,
}Expand description
6.2.30 Entity Type record
Fields§
§kind: EntityKind§domain: PlatformDomain§country: Country§category: u8§subcategory: u8§specific: u8§extra: u8Implementations§
Source§impl EntityType
 
impl EntityType
pub fn with_kind(self, kind: EntityKind) -> Self
pub fn with_domain(self, domain: PlatformDomain) -> Self
pub fn with_country(self, country: Country) -> Self
pub fn with_category(self, category: u8) -> Self
pub fn with_subcategory(self, subcategory: u8) -> Self
pub fn with_specific(self, specific: u8) -> Self
pub fn with_extra(self, extra: u8) -> Self
pub fn record_length(&self) -> u16
Trait Implementations§
Source§impl Clone for EntityType
 
impl Clone for EntityType
Source§fn clone(&self) -> EntityType
 
fn clone(&self) -> EntityType
Returns a duplicate of the value. Read more
1.0.0 · 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 EntityType
 
impl Debug for EntityType
Source§impl Default for EntityType
 
impl Default for EntityType
Source§fn default() -> EntityType
 
fn default() -> EntityType
Returns the “default value” for a type. Read more
Source§impl Display for EntityType
 
impl Display for EntityType
Source§impl FromStr for EntityType
 
impl FromStr for EntityType
Source§impl Hash for EntityType
 
impl Hash for EntityType
Source§impl PartialEq for EntityType
 
impl PartialEq for EntityType
Source§impl TryFrom<&str> for EntityType
 
impl TryFrom<&str> for EntityType
Source§impl TryFrom<String> for EntityType
 
impl TryFrom<String> for EntityType
impl Copy for EntityType
impl Eq for EntityType
impl StructuralPartialEq for EntityType
Auto Trait Implementations§
impl Freeze for EntityType
impl RefUnwindSafe for EntityType
impl Send for EntityType
impl Sync for EntityType
impl Unpin for EntityType
impl UnwindSafe for EntityType
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