Struct some_random_api::RankCard
source · pub struct RankCard {
pub template: u8,
pub username: String,
pub discriminator: String,
pub avatar_url: String,
pub level: u64,
pub current_xp: u64,
pub needed_xp: u64,
pub background_url: String,
pub background_color: String,
pub text_color: String,
pub current_xp_color: String,
pub xp_bar_color: String,
}
Fields§
§template: u8
§username: String
§discriminator: String
§avatar_url: String
§level: u64
§current_xp: u64
§needed_xp: u64
§background_url: String
§background_color: String
§text_color: String
§current_xp_color: String
§xp_bar_color: String
Implementations§
source§impl RankCard
impl RankCard
sourcepub fn new<T: ToString, U: ToString, V: ToString>(
username: T,
discriminator: U,
avatar_url: V,
level: u64,
(current_xp, needed_xp): (u64, u64)
) -> Self
pub fn new<T: ToString, U: ToString, V: ToString>( username: T, discriminator: U, avatar_url: V, level: u64, (current_xp, needed_xp): (u64, u64) ) -> Self
sourcepub fn set_template(self, template: u8) -> Self
pub fn set_template(self, template: u8) -> Self
Sets the rank card template (1-8)
sourcepub fn set_background_url<T: ToString>(self, background_url: T) -> Self
pub fn set_background_url<T: ToString>(self, background_url: T) -> Self
Sets the rank card background URL
sourcepub fn set_background_color(self, background_color: u32) -> Self
pub fn set_background_color(self, background_color: u32) -> Self
Sets the rank card background color
sourcepub fn set_text_color(self, text_color: u32) -> Self
pub fn set_text_color(self, text_color: u32) -> Self
Sets the rank card text color
sourcepub fn set_current_xp_color(self, current_xp_color: u32) -> Self
pub fn set_current_xp_color(self, current_xp_color: u32) -> Self
Sets the rank card current xp color
sourcepub fn set_xp_bar_color(self, xp_bar_color: u32) -> Self
pub fn set_xp_bar_color(self, xp_bar_color: u32) -> Self
Sets the rank card xp bar color
Auto Trait Implementations§
impl RefUnwindSafe for RankCard
impl Send for RankCard
impl Sync for RankCard
impl Unpin for RankCard
impl UnwindSafe for RankCard
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