Struct dis_rs::EntityType
source · pub struct EntityType {
pub kind: EntityKind,
pub domain: PlatformDomain,
pub country: Country,
pub category: u8,
pub subcategory: u8,
pub specific: u8,
pub extra: u8,
}
Fields§
§kind: EntityKind
§domain: PlatformDomain
§country: Country
§category: u8
§subcategory: u8
§specific: u8
§extra: u8
Implementations§
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
Trait Implementations§
source§impl Clone for EntityType
impl Clone for EntityType
source§fn clone(&self) -> EntityType
fn clone(&self) -> EntityType
Returns a copy 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 PartialEq for EntityType
impl PartialEq for EntityType
source§fn eq(&self, other: &EntityType) -> bool
fn eq(&self, other: &EntityType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for EntityType
impl Eq for EntityType
impl StructuralEq for EntityType
impl StructuralPartialEq for EntityType
Auto Trait Implementations§
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