Struct dofus_protocol::game::common::EntityDisposition
source · pub struct EntityDisposition {
pub entity_id: Option<i64>,
pub cell_id: Option<i32>,
pub direction: i32,
pub carrying_character_id: Option<i64>,
}
Fields§
§entity_id: Option<i64>
§cell_id: Option<i32>
§direction: i32
§carrying_character_id: Option<i64>
Implementations§
source§impl EntityDisposition
impl EntityDisposition
sourcepub fn entity_id(&self) -> i64
pub fn entity_id(&self) -> i64
Returns the value of entity_id
, or the default value if entity_id
is unset.
sourcepub fn cell_id(&self) -> i32
pub fn cell_id(&self) -> i32
Returns the value of cell_id
, or the default value if cell_id
is unset.
sourcepub fn direction(&self) -> Direction
pub fn direction(&self) -> Direction
Returns the enum value of direction
, or the default if the field is set to an invalid enum value.
sourcepub fn set_direction(&mut self, value: Direction)
pub fn set_direction(&mut self, value: Direction)
Sets direction
to the provided enum value.
sourcepub fn carrying_character_id(&self) -> i64
pub fn carrying_character_id(&self) -> i64
Returns the value of carrying_character_id
, or the default value if carrying_character_id
is unset.
Trait Implementations§
source§impl Clone for EntityDisposition
impl Clone for EntityDisposition
source§fn clone(&self) -> EntityDisposition
fn clone(&self) -> EntityDisposition
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 EntityDisposition
impl Debug for EntityDisposition
source§impl Default for EntityDisposition
impl Default for EntityDisposition
source§impl Message for EntityDisposition
impl Message for EntityDisposition
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl Name for EntityDisposition
impl Name for EntityDisposition
source§const NAME: &'static str = "EntityDisposition"
const NAME: &'static str = "EntityDisposition"
Simple name for this
Message
.
This name is the same as it appears in the source .proto file, e.g. FooBar
.source§const PACKAGE: &'static str = "com.ankama.dofus.server.game.protocol.common"
const PACKAGE: &'static str = "com.ankama.dofus.server.game.protocol.common"
Package name this message type is contained in. They are domain-like
and delimited by
.
, e.g. google.protobuf
.source§fn full_name() -> String
fn full_name() -> String
Fully-qualified unique name for this
Message
.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation
.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.source§impl PartialEq for EntityDisposition
impl PartialEq for EntityDisposition
impl Copy for EntityDisposition
impl StructuralPartialEq for EntityDisposition
Auto Trait Implementations§
impl Freeze for EntityDisposition
impl RefUnwindSafe for EntityDisposition
impl Send for EntityDisposition
impl Sync for EntityDisposition
impl Unpin for EntityDisposition
impl UnwindSafe for EntityDisposition
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)