pub struct BuddyState {Show 20 fields
pub name: String,
pub species: Species,
pub rarity: Rarity,
pub level: u32,
pub xp: u64,
pub xp_next_level: u64,
pub mood: Mood,
pub speech: String,
pub tokens_saved: u64,
pub compression_pct: u8,
pub cache_hit_rate: u8,
pub bugs_prevented: u64,
pub streak_days: u32,
pub ascii_art: Vec<String>,
pub ascii_frames: Vec<Vec<String>>,
pub anim_ms: Option<u32>,
pub evolution: EvolutionStage,
pub prestige: u32,
pub form: String,
pub achievement_badges: Vec<String>,
}Fields§
§name: String§species: Species§rarity: Rarity§level: u32§xp: u64§xp_next_level: u64§mood: Mood§speech: String§tokens_saved: u64§compression_pct: u8Lifetime compression rate (0..100), the headline lean-ctx efficiency stat.
cache_hit_rate: u8Cache hit rate (0..100) across MCP reads.
bugs_prevented: u64§streak_days: u32§ascii_art: Vec<String>§ascii_frames: Vec<Vec<String>>§anim_ms: Option<u32>§evolution: EvolutionStage§prestige: u32Infinite post-Mythic prestige tier. 0 until the buddy starts ascending.
form: StringHuman-facing form/rank title (never a dead-end). Follows the endless ladder: Egg → Baby → Teen → Adult → Mythic → Ascended → Stellar → … → (cosmic ranks, then roman-numeral laps). Used verbatim by the web card.
achievement_badges: Vec<String>Implementations§
Source§impl BuddyState
impl BuddyState
Sourcepub fn form_title(&self) -> String
pub fn form_title(&self) -> String
The current form/rank title on the endless progression ladder. Before the buddy ascends this is its evolution stage; afterwards it is the unbounded cosmic ascension rank, so it is never a confusing low-stage word at a high level.
pub fn compute() -> Self
Trait Implementations§
Source§impl Clone for BuddyState
impl Clone for BuddyState
Source§fn clone(&self) -> BuddyState
fn clone(&self) -> BuddyState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BuddyState
impl Debug for BuddyState
Source§impl<'de> Deserialize<'de> for BuddyState
impl<'de> Deserialize<'de> for BuddyState
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 Freeze for BuddyState
impl RefUnwindSafe for BuddyState
impl Send for BuddyState
impl Sync for BuddyState
impl Unpin for BuddyState
impl UnsafeUnpin for BuddyState
impl UnwindSafe for BuddyState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more