Event

Struct Event 

Source
pub struct Event {
Show 34 fields pub id: Option<String>, pub activation: Option<String>, pub expiry: Option<String>, pub maximum_score: Option<f64>, pub current_score: Option<f64>, pub small_interval: Option<f64>, pub large_interval: Option<f64>, pub faction: Option<Faction>, pub description: Option<String>, pub tooltip: Option<String>, pub node: Option<String>, pub concurrent_nodes: Option<Vec<String>>, pub victim_node: Option<String>, pub score_loc_tag: Option<String>, pub rewards: Option<Vec<Reward>>, pub health: Option<f64>, pub affiliated_with: Option<Syndicate>, pub jobs: Option<Vec<SyndicateJob>>, pub interim_steps: Option<Vec<EventAllOfInterimSteps>>, pub progress_steps: Option<Vec<EventAllOfProgressSteps>>, pub progress_total: Option<f64>, pub show_total_at_end_of_mission: Option<bool>, pub is_personal: Option<bool>, pub is_community: Option<bool>, pub region_drops: Option<Vec<String>>, pub archwing_drops: Option<Vec<String>>, pub as_string: Option<String>, pub metadata: Option<Value>, pub completion_bonuses: Option<Vec<f64>>, pub score_var: Option<String>, pub alt_expiry: Option<String>, pub alt_activation: Option<String>, pub next_alt: Option<Box<EventAllOfNextAlt>>, pub tag: Option<String>,
}

Fields§

§id: Option<String>

unique identifier for this object/event/thing

§activation: Option<String>

ISO-8601 formatted timestamp for when the event began

§expiry: Option<String>

A timestamp in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ) representing a specific point in time. This format is commonly used in APIs to ensure consistent date and time representation. The timestamp is in UTC (Coordinated Universal Time) and does not include any timezone offset. It is used to represent events, deadlines, or any time-related information in a standardized way. Example: "2023-10-01T12:00:00Z" represents October 1, 2023, at 12:00 PM UTC.

§maximum_score: Option<f64>

Maximum score to complete the event

§current_score: Option<f64>

The current score for the event

§small_interval: Option<f64>

Interval for the first goal

§large_interval: Option<f64>

Interval for the second intermediate score

§faction: Option<Faction>§description: Option<String>

The description or "subtitle" for the event.

§tooltip: Option<String>

Tooltip for the event

§node: Option<String>

Node that the event is taking place on

§concurrent_nodes: Option<Vec<String>>

Nodes that the event is happening concurrently on

§victim_node: Option<String>

Node that is being attacked & defended in the event.

§score_loc_tag: Option<String>

Localized tag for the event score

§rewards: Option<Vec<Reward>>§health: Option<f64>

Amount of health remaining for the target

§affiliated_with: Option<Syndicate>§jobs: Option<Vec<SyndicateJob>>§interim_steps: Option<Vec<EventAllOfInterimSteps>>

Interim steps, marking progress towards the final goal.

§progress_steps: Option<Vec<EventAllOfProgressSteps>>§progress_total: Option<f64>

Total of progressSteps values.

§show_total_at_end_of_mission: Option<bool>

Whether to show the total score at the end of the mission

§is_personal: Option<bool>

Whether the event is personal

§is_community: Option<bool>

Whether the event is communal

§region_drops: Option<Vec<String>>

Drops in the area around the event node

§archwing_drops: Option<Vec<String>>

Archwing Drops in effect while this event is active

§as_string: Option<String>

Attempt to summarize event in a short string. (Do not use).

§metadata: Option<Value>

Miscellaneous metadata in a string provided by Digital Extremes

§completion_bonuses: Option<Vec<f64>>

Completion bonus amounts per-stage

§score_var: Option<String>

Internal string used for unknown purpose

§alt_expiry: Option<String>

Alternate Expiry. Use unknown.

§alt_activation: Option<String>

Alternate Activation. Use unknown.

§next_alt: Option<Box<EventAllOfNextAlt>>§tag: Option<String>

A unique identifier or category label for the event, used to group or filter related events.

Implementations§

Source§

impl Event

Source

pub fn new() -> Event

Trait Implementations§

Source§

impl Clone for Event

Source§

fn clone(&self) -> Event

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Event

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Event

Source§

fn default() -> Event

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Event

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Event

Source§

fn eq(&self, other: &Event) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Event

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Event

Auto Trait Implementations§

§

impl Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,