pub struct UserMedalInfo {Show 15 fields
pub target_id: Mid,
pub level: u32,
pub name: String,
pub medal_color_start: u32,
pub medal_color_end: u32,
pub medal_color_border: u32,
pub guard_level: u32,
pub wearing_status: u32,
pub medal_id: u64,
pub intimacy: u64,
pub next_intimacy: u64,
pub today_feed: u64,
pub day_limit: u64,
pub guard_icon: Option<String>,
pub honor_icon: Option<String>,
}Expand description
Stable fan-medal metadata for one target creator.
Fields§
§target_id: MidTarget creator member ID.
level: u32Medal level.
name: StringMedal display name.
medal_color_start: u32Medal gradient start color.
medal_color_end: u32Medal gradient end color.
medal_color_border: u32Medal border color.
guard_level: u32Guard level associated with this medal.
wearing_status: u32Whether this medal is currently worn.
medal_id: u64Medal ID.
intimacy: u64Current intimacy score.
next_intimacy: u64Required intimacy score for the next level.
today_feed: u64Intimacy fed today.
day_limit: u64Daily intimacy feed limit.
guard_icon: Option<String>Guard icon URL when Bilibili returns it.
honor_icon: Option<String>Honor icon URL when Bilibili returns it.
Trait Implementations§
Source§impl Clone for UserMedalInfo
impl Clone for UserMedalInfo
Source§fn clone(&self) -> UserMedalInfo
fn clone(&self) -> UserMedalInfo
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 UserMedalInfo
impl Debug for UserMedalInfo
Source§impl<'de> Deserialize<'de> for UserMedalInfo
impl<'de> Deserialize<'de> for UserMedalInfo
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 UserMedalInfo
impl RefUnwindSafe for UserMedalInfo
impl Send for UserMedalInfo
impl Sync for UserMedalInfo
impl Unpin for UserMedalInfo
impl UnsafeUnpin for UserMedalInfo
impl UnwindSafe for UserMedalInfo
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