pub struct UserMedalOwnerInfo {Show 20 fields
pub name: String,
pub level: u32,
pub color_start: u32,
pub color_end: u32,
pub color_border: u32,
pub color: u32,
pub id: u64,
pub typ: u32,
pub is_light: u32,
pub ruid: Mid,
pub guard_level: u32,
pub score: u64,
pub guard_icon: Option<String>,
pub honor_icon: Option<String>,
pub v2_medal_color_start: Option<String>,
pub v2_medal_color_end: Option<String>,
pub v2_medal_color_border: Option<String>,
pub v2_medal_color_text: Option<String>,
pub v2_medal_color_level: Option<String>,
pub user_receive_count: Option<u32>,
}Expand description
Medal display fields from the wall owner’s point of view.
Fields§
§name: StringMedal display name.
level: u32Medal level.
color_start: u32Medal gradient start color.
color_end: u32Medal gradient end color.
color_border: u32Medal border color.
color: u32Medal text color.
id: u64Medal ID.
typ: u32Medal type returned by Bilibili.
is_light: u32Whether the medal is lit.
ruid: MidTarget creator member ID.
guard_level: u32Guard level associated with this medal.
score: u64Current intimacy score.
guard_icon: Option<String>Guard icon URL when Bilibili returns it.
honor_icon: Option<String>Honor icon URL when Bilibili returns it.
v2_medal_color_start: Option<String>V2 medal start color token.
v2_medal_color_end: Option<String>V2 medal end color token.
v2_medal_color_border: Option<String>V2 medal border color token.
v2_medal_color_text: Option<String>V2 medal text color token.
v2_medal_color_level: Option<String>V2 medal level color token.
user_receive_count: Option<u32>Number of users who received this medal when Bilibili returns it.
Trait Implementations§
Source§impl Clone for UserMedalOwnerInfo
impl Clone for UserMedalOwnerInfo
Source§fn clone(&self) -> UserMedalOwnerInfo
fn clone(&self) -> UserMedalOwnerInfo
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 UserMedalOwnerInfo
impl Debug for UserMedalOwnerInfo
Source§impl<'de> Deserialize<'de> for UserMedalOwnerInfo
impl<'de> Deserialize<'de> for UserMedalOwnerInfo
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 UserMedalOwnerInfo
impl RefUnwindSafe for UserMedalOwnerInfo
impl Send for UserMedalOwnerInfo
impl Sync for UserMedalOwnerInfo
impl Unpin for UserMedalOwnerInfo
impl UnsafeUnpin for UserMedalOwnerInfo
impl UnwindSafe for UserMedalOwnerInfo
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