#[non_exhaustive]pub struct ComponentData {
pub entity_type: StrBytes,
pub match_type: i8,
pub _match: Option<StrBytes>,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}Expand description
Valid versions: 0-1
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.entity_type: StrBytesThe entity type that the filter component applies to.
Supported API versions: 0-1
match_type: i8How to match the entity {0 = exact name, 1 = default name, 2 = any specified name}.
Supported API versions: 0-1
_match: Option<StrBytes>The string to match against, or null if unused for the match type.
Supported API versions: 0-1
unknown_tagged_fields: BTreeMap<i32, Bytes>Other tagged fields
Implementations§
source§impl ComponentData
impl ComponentData
sourcepub fn with_entity_type(self, value: StrBytes) -> Self
pub fn with_entity_type(self, value: StrBytes) -> Self
Sets entity_type to the passed value.
The entity type that the filter component applies to.
Supported API versions: 0-1
sourcepub fn with_match_type(self, value: i8) -> Self
pub fn with_match_type(self, value: i8) -> Self
Sets match_type to the passed value.
How to match the entity {0 = exact name, 1 = default name, 2 = any specified name}.
Supported API versions: 0-1
sourcepub fn with_match(self, value: Option<StrBytes>) -> Self
pub fn with_match(self, value: Option<StrBytes>) -> Self
Sets _match to the passed value.
The string to match against, or null if unused for the match type.
Supported API versions: 0-1
sourcepub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
pub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
Sets unknown_tagged_fields to the passed value.
sourcepub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
pub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
Inserts an entry into unknown_tagged_fields.
Trait Implementations§
source§impl Clone for ComponentData
impl Clone for ComponentData
source§fn clone(&self) -> ComponentData
fn clone(&self) -> ComponentData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ComponentData
impl Debug for ComponentData
source§impl Decodable for ComponentData
impl Decodable for ComponentData
source§impl Default for ComponentData
impl Default for ComponentData
source§impl Encodable for ComponentData
impl Encodable for ComponentData
source§impl Message for ComponentData
impl Message for ComponentData
source§const VERSIONS: VersionRange = _
const VERSIONS: VersionRange = _
source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
source§impl PartialEq for ComponentData
impl PartialEq for ComponentData
impl StructuralPartialEq for ComponentData
Auto Trait Implementations§
impl !Freeze for ComponentData
impl RefUnwindSafe for ComponentData
impl Send for ComponentData
impl Sync for ComponentData
impl Unpin for ComponentData
impl UnwindSafe for ComponentData
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)