pub struct StarRailNote {
Show 14 fields pub current_stamina: u16, pub max_stamina: u16, pub stamina_recover_time: u32, pub accepted_expedition_num: u8, pub total_expedition_num: u8, pub expeditions: Option<Vec<Expedition>>, pub current_train_score: u16, pub max_train_score: u16, pub current_rogue_score: u32, pub max_rogue_score: u32, pub weekly_cocoon_cnt: u8, pub weekly_cocoon_limit: u8, pub current_reserve_stamina: u32, pub is_reserve_stamina_full: bool,
}

Fields§

§current_stamina: u16

A.K.A. Trailblaze Power.

§max_stamina: u16

Max value of Trailblaze Power.

§stamina_recover_time: u32

Full recovery time.

§accepted_expedition_num: u8

A limit of accept expeditions

§total_expedition_num: u8

Current Count that expeditions

§expeditions: Option<Vec<Expedition>>

Details of Expeditions.

§current_train_score: u16

Current Value of Daily Training.

§max_train_score: u16

Max Value of Daily Training.

§current_rogue_score: u32

Current Value of Point Rewards on Simulated Universe.

§max_rogue_score: u32

Max Value of Point Rewards on Simulated Universe.

§weekly_cocoon_cnt: u8

Echo of War count that can get Reward claims.

§weekly_cocoon_limit: u8

Echo of War attempt Limit that can get Reward claims.

§current_reserve_stamina: u32

Current Owned Reserved Trailblaze Power

§is_reserve_stamina_full: bool

Filled Reserved Trailblaze Power or Not

Implementations§

source§

impl StarRailNote

source

pub fn diff_stamina(&self) -> u16

The difference from max [max_stamina] to [current_stamina]

source

pub fn is_all_done(&self) -> Option<bool>

Check the all [expeditions] finished or not as Option<bool>. If there’s no Expeditions return value is None

source

pub fn expedition_details(&self) -> Option<HashMap<String, Duration>>

A simply info of [expedition].

source

pub fn recover_time_as_duration(&self) -> Duration

The return value is Stamina recover time as Duration

Trait Implementations§

source§

impl Debug for StarRailNote

source§

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

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

impl<'de> Deserialize<'de> for StarRailNote

source§

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

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

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

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

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 Twhere 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, U> TryFrom<U> for Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

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 Twhere T: for<'de> Deserialize<'de>,