Struct miHoYo_API::model::starrail::notes::StarRailNote
source · 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: u16A.K.A. Trailblaze Power.
max_stamina: u16Max value of Trailblaze Power.
stamina_recover_time: u32Full recovery time.
accepted_expedition_num: u8A limit of accept expeditions
total_expedition_num: u8Current Count that expeditions
expeditions: Option<Vec<Expedition>>Details of Expeditions.
current_train_score: u16Current Value of Daily Training.
max_train_score: u16Max Value of Daily Training.
current_rogue_score: u32Current Value of Point Rewards on Simulated Universe.
max_rogue_score: u32Max Value of Point Rewards on Simulated Universe.
weekly_cocoon_cnt: u8Echo of War count that can get Reward claims.
weekly_cocoon_limit: u8Echo of War attempt Limit that can get Reward claims.
current_reserve_stamina: u32Current Owned Reserved Trailblaze Power
is_reserve_stamina_full: boolFilled Reserved Trailblaze Power or Not
Implementations§
source§impl StarRailNote
impl StarRailNote
sourcepub fn diff_stamina(&self) -> u16
pub fn diff_stamina(&self) -> u16
The difference from max [max_stamina] to [current_stamina]
sourcepub fn is_all_done(&self) -> Option<bool>
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
sourcepub fn expedition_details(&self) -> Option<HashMap<String, Duration>>
pub fn expedition_details(&self) -> Option<HashMap<String, Duration>>
A simply info of [expedition].
sourcepub fn recover_time_as_duration(&self) -> Duration
pub fn recover_time_as_duration(&self) -> Duration
The return value is Stamina recover time as Duration
Trait Implementations§
source§impl Debug for StarRailNote
impl Debug for StarRailNote
source§impl<'de> Deserialize<'de> for StarRailNote
impl<'de> Deserialize<'de> for StarRailNote
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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§
impl RefUnwindSafe for StarRailNote
impl Send for StarRailNote
impl Sync for StarRailNote
impl Unpin for StarRailNote
impl UnwindSafe for StarRailNote
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