pub struct BadgeSchema {
    pub code: String,
    pub season: Option<i32>,
    pub description: String,
    pub conditions: Vec<BadgeConditionSchema>,
}Fields§
§code: StringCode of the badge. This is the badge’s unique identifier (ID).
season: Option<i32>Season of the badge.
description: StringDescription of the badge.
conditions: Vec<BadgeConditionSchema>Conditions to get the badge.
Implementations§
Source§impl BadgeSchema
 
impl BadgeSchema
pub fn new( code: String, description: String, conditions: Vec<BadgeConditionSchema>, ) -> BadgeSchema
Trait Implementations§
Source§impl Clone for BadgeSchema
 
impl Clone for BadgeSchema
Source§fn clone(&self) -> BadgeSchema
 
fn clone(&self) -> BadgeSchema
Returns a duplicate of the value. Read more
1.0.0 · 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 BadgeSchema
 
impl Debug for BadgeSchema
Source§impl Default for BadgeSchema
 
impl Default for BadgeSchema
Source§fn default() -> BadgeSchema
 
fn default() -> BadgeSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BadgeSchema
 
impl<'de> Deserialize<'de> for BadgeSchema
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
Source§impl PartialEq for BadgeSchema
 
impl PartialEq for BadgeSchema
Source§impl Serialize for BadgeSchema
 
impl Serialize for BadgeSchema
impl StructuralPartialEq for BadgeSchema
Auto Trait Implementations§
impl Freeze for BadgeSchema
impl RefUnwindSafe for BadgeSchema
impl Send for BadgeSchema
impl Sync for BadgeSchema
impl Unpin for BadgeSchema
impl UnwindSafe for BadgeSchema
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