#[non_exhaustive]pub struct BadgeImage {
pub name: String,
pub badge_type: Option<String>,
pub image_url: String,
pub level: Option<i64>,
pub sort_order: i64,
}Expand description
A badge in Kick’s image format (identity.badges_v2). Badges the user
chose not to show (selected: false) are left out.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Stringlevel, or an event badge’s name.
badge_type: Option<String>global, …
image_url: StringThe image, on Kick’s CDN.
level: Option<i64>The chat level, on a level badge.
sort_order: i64Kick’s ordering.
Trait Implementations§
Source§impl Clone for BadgeImage
impl Clone for BadgeImage
Source§impl Debug for BadgeImage
impl Debug for BadgeImage
impl Eq for BadgeImage
Source§impl PartialEq for BadgeImage
impl PartialEq for BadgeImage
Source§impl Serialize for BadgeImage
impl Serialize for BadgeImage
impl StructuralPartialEq for BadgeImage
Auto Trait Implementations§
impl Freeze for BadgeImage
impl RefUnwindSafe for BadgeImage
impl Send for BadgeImage
impl Sync for BadgeImage
impl Unpin for BadgeImage
impl UnsafeUnpin for BadgeImage
impl UnwindSafe for BadgeImage
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