pub struct AuraIntervalProto {
pub start_ms: u32,
pub end_ms: u32,
pub open_ended: bool,
pub aura_slug: String,
pub source: String,
pub target_id: u32,
pub source_kind: i32,
pub source_id: u32,
pub affected_kind: i32,
pub affected_id: u32,
pub pull_id: Option<u32>,
pub group_id: Option<u32>,
}Fields§
§start_ms: u32§end_ms: u320 when open_ended == true (aura active at end-of-fight).
open_ended: bool§aura_slug: StringNumeric aura id as a decimal string. Renaming this field to
aura_id_str would change the wire format; consumers that want a
human-readable slug must map via the spec catalog. (Catalog plumbing
into engine-sim is pending; see C16 in the rotation-editor review.)
source: StringActor category: “player”, “pet”, or “enemy”. Exact identity is carried by
source_kind and source_id below.
target_id: u32§source_kind: i32§source_id: u32§affected_kind: i32§affected_id: u32§pull_id: Option<u32>§group_id: Option<u32>Implementations§
Source§impl AuraIntervalProto
impl AuraIntervalProto
Sourcepub fn source_kind(&self) -> ActorKind
pub fn source_kind(&self) -> ActorKind
Returns the enum value of source_kind, or the default if the field is set to an invalid enum value.
Sourcepub fn set_source_kind(&mut self, value: ActorKind)
pub fn set_source_kind(&mut self, value: ActorKind)
Sets source_kind to the provided enum value.
Sourcepub fn affected_kind(&self) -> ActorKind
pub fn affected_kind(&self) -> ActorKind
Returns the enum value of affected_kind, or the default if the field is set to an invalid enum value.
Sourcepub fn set_affected_kind(&mut self, value: ActorKind)
pub fn set_affected_kind(&mut self, value: ActorKind)
Sets affected_kind to the provided enum value.
Trait Implementations§
Source§impl Clone for AuraIntervalProto
impl Clone for AuraIntervalProto
Source§fn clone(&self) -> AuraIntervalProto
fn clone(&self) -> AuraIntervalProto
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 AuraIntervalProto
impl Debug for AuraIntervalProto
Source§impl Default for AuraIntervalProto
impl Default for AuraIntervalProto
Source§impl Hash for AuraIntervalProto
impl Hash for AuraIntervalProto
Source§impl Message for AuraIntervalProto
impl Message for AuraIntervalProto
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 AuraIntervalProto
impl PartialEq for AuraIntervalProto
impl Eq for AuraIntervalProto
impl StructuralPartialEq for AuraIntervalProto
Auto Trait Implementations§
impl Freeze for AuraIntervalProto
impl RefUnwindSafe for AuraIntervalProto
impl Send for AuraIntervalProto
impl Sync for AuraIntervalProto
impl Unpin for AuraIntervalProto
impl UnsafeUnpin for AuraIntervalProto
impl UnwindSafe for AuraIntervalProto
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