#[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: StrBytes
The entity type that the filter component applies to.
Supported API versions: 0-1
match_type: i8
How 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
Available on crate feature broker
only.
impl Decodable for ComponentData
broker
only.Source§impl Default for ComponentData
impl Default for ComponentData
Source§impl Encodable for ComponentData
Available on crate feature client
only.
impl Encodable for ComponentData
client
only.