pub struct Clan {
Show 24 fields pub tag: String, pub name: String, pub privacy: Privacy, pub description: Option<String>, pub location: Option<Location>, pub badge_urls: BadgeUrls, pub clan_level: i8, pub clan_points: i32, pub clan_versus_points: i32, pub required_trophies: i32, pub war_frequency: WarFrequency, pub war_win_streak: i32, pub war_wins: i32, pub war_ties: Option<i32>, pub war_losses: Option<i32>, pub is_war_log_public: bool, pub war_league: WarLeague, pub members: i32, pub member_list: Option<Vec<ClanMember>>, pub labels: Vec<ClanLabel>, pub required_versus_trophies: i32, pub required_townhall_level: i8, pub clan_capital: Option<ClanCapital>, pub chat_language: Option<ChatLanguage>,
}

Fields

tag: Stringname: Stringprivacy: Privacydescription: Option<String>location: Option<Location>badge_urls: BadgeUrlsclan_level: i8clan_points: i32clan_versus_points: i32required_trophies: i32war_frequency: WarFrequencywar_win_streak: i32war_wins: i32war_ties: Option<i32>war_losses: Option<i32>is_war_log_public: boolwar_league: WarLeaguemembers: i32member_list: Option<Vec<ClanMember>>labels: Vec<ClanLabel>required_versus_trophies: i32required_townhall_level: i8clan_capital: Option<ClanCapital>

Unfortunately this isn’t returned in the /clans endpoint, only for a specific clan so I’m using an option for now

chat_language: Option<ChatLanguage>

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more