pub struct EncounterTimelineEvent {Show 13 fields
pub kind: i32,
pub time_ms: u32,
pub actor_kind: i32,
pub actor_id: u32,
pub previous_target_id: Option<u32>,
pub target_id: Option<u32>,
pub pull_id: u32,
pub group_id: Option<u32>,
pub x: Option<f64>,
pub y: Option<f64>,
pub heading: Option<f64>,
pub layer_id: Option<u32>,
pub sequence: u64,
}Fields§
§kind: i32§time_ms: u32§actor_kind: i32§actor_id: u32§previous_target_id: Option<u32>§target_id: Option<u32>§pull_id: u32§group_id: Option<u32>§x: Option<f64>§y: Option<f64>§heading: Option<f64>§layer_id: Option<u32>§sequence: u64Implementations§
Source§impl EncounterTimelineEvent
impl EncounterTimelineEvent
Sourcepub fn kind(&self) -> EncounterEventKind
pub fn kind(&self) -> EncounterEventKind
Returns the enum value of kind, or the default if the field is set to an invalid enum value.
Sourcepub fn set_kind(&mut self, value: EncounterEventKind)
pub fn set_kind(&mut self, value: EncounterEventKind)
Sets kind to the provided enum value.
Sourcepub fn actor_kind(&self) -> ActorKind
pub fn actor_kind(&self) -> ActorKind
Returns the enum value of actor_kind, or the default if the field is set to an invalid enum value.
Sourcepub fn set_actor_kind(&mut self, value: ActorKind)
pub fn set_actor_kind(&mut self, value: ActorKind)
Sets actor_kind to the provided enum value.
Sourcepub fn previous_target_id(&self) -> u32
pub fn previous_target_id(&self) -> u32
Returns the value of previous_target_id, or the default value if previous_target_id is unset.
Sourcepub fn target_id(&self) -> u32
pub fn target_id(&self) -> u32
Returns the value of target_id, or the default value if target_id is unset.
Sourcepub fn group_id(&self) -> u32
pub fn group_id(&self) -> u32
Returns the value of group_id, or the default value if group_id is unset.
Trait Implementations§
Source§impl Clone for EncounterTimelineEvent
impl Clone for EncounterTimelineEvent
Source§fn clone(&self) -> EncounterTimelineEvent
fn clone(&self) -> EncounterTimelineEvent
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 EncounterTimelineEvent
impl Debug for EncounterTimelineEvent
Source§impl Default for EncounterTimelineEvent
impl Default for EncounterTimelineEvent
Source§impl Message for EncounterTimelineEvent
impl Message for EncounterTimelineEvent
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 PartialEq for EncounterTimelineEvent
impl PartialEq for EncounterTimelineEvent
impl Copy for EncounterTimelineEvent
impl StructuralPartialEq for EncounterTimelineEvent
Auto Trait Implementations§
impl Freeze for EncounterTimelineEvent
impl RefUnwindSafe for EncounterTimelineEvent
impl Send for EncounterTimelineEvent
impl Sync for EncounterTimelineEvent
impl Unpin for EncounterTimelineEvent
impl UnsafeUnpin for EncounterTimelineEvent
impl UnwindSafe for EncounterTimelineEvent
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