pub struct Leaderboard { /* private fields */ }
Expand description
Leaderboard data
Implementations§
Source§impl Leaderboard
Auto-generated by derive_getters::Getters
.
impl Leaderboard
Auto-generated by derive_getters::Getters
.
Sourcepub fn top_clans(&self) -> &Vec<Clan>
pub fn top_clans(&self) -> &Vec<Clan>
Get field top_clans
from instance of Leaderboard
.
Examples found in repository?
examples/top_leaderboard.rs (line 33)
28fn main() {
29 let api = BBApi::new();
30 let lb = api.leaderboard()
31 .expect("Retrieving leaderboard");
32
33 print_clan(lb.top_clans());
34
35 print_player(lb.most_kills(), "Most kills", "Kills");
36 print_player(lb.most_roadkills(), "Most roadkills", "Roadkills");
37 print_player(lb.longest_kills(), "Longest kill", "Meters");
38
39 print_player(lb.most_xp(), "Most XP", "XP");
40 print_player(lb.most_heals(), "Most heal", "HP");
41 print_player(lb.most_revives(), "Most revives", "Revives");
42
43 print_player(lb.most_objectives_complete(), "Most objectives", "Objectives");
44
45 print_player(lb.most_vehicles_destroyed(), "Vehicles destroyed", "Vehicles");
46 print_player(lb.most_vehicle_repairs(), "Vehicle repairs", "Repairs");
47}
Sourcepub fn most_xp(&self) -> &Vec<Player>
pub fn most_xp(&self) -> &Vec<Player>
Get field most_xp
from instance of Leaderboard
.
Examples found in repository?
examples/top_leaderboard.rs (line 39)
28fn main() {
29 let api = BBApi::new();
30 let lb = api.leaderboard()
31 .expect("Retrieving leaderboard");
32
33 print_clan(lb.top_clans());
34
35 print_player(lb.most_kills(), "Most kills", "Kills");
36 print_player(lb.most_roadkills(), "Most roadkills", "Roadkills");
37 print_player(lb.longest_kills(), "Longest kill", "Meters");
38
39 print_player(lb.most_xp(), "Most XP", "XP");
40 print_player(lb.most_heals(), "Most heal", "HP");
41 print_player(lb.most_revives(), "Most revives", "Revives");
42
43 print_player(lb.most_objectives_complete(), "Most objectives", "Objectives");
44
45 print_player(lb.most_vehicles_destroyed(), "Vehicles destroyed", "Vehicles");
46 print_player(lb.most_vehicle_repairs(), "Vehicle repairs", "Repairs");
47}
Sourcepub fn most_heals(&self) -> &Vec<Player>
pub fn most_heals(&self) -> &Vec<Player>
Get field most_heals
from instance of Leaderboard
.
Examples found in repository?
examples/top_leaderboard.rs (line 40)
28fn main() {
29 let api = BBApi::new();
30 let lb = api.leaderboard()
31 .expect("Retrieving leaderboard");
32
33 print_clan(lb.top_clans());
34
35 print_player(lb.most_kills(), "Most kills", "Kills");
36 print_player(lb.most_roadkills(), "Most roadkills", "Roadkills");
37 print_player(lb.longest_kills(), "Longest kill", "Meters");
38
39 print_player(lb.most_xp(), "Most XP", "XP");
40 print_player(lb.most_heals(), "Most heal", "HP");
41 print_player(lb.most_revives(), "Most revives", "Revives");
42
43 print_player(lb.most_objectives_complete(), "Most objectives", "Objectives");
44
45 print_player(lb.most_vehicles_destroyed(), "Vehicles destroyed", "Vehicles");
46 print_player(lb.most_vehicle_repairs(), "Vehicle repairs", "Repairs");
47}
Sourcepub fn most_revives(&self) -> &Vec<Player>
pub fn most_revives(&self) -> &Vec<Player>
Get field most_revives
from instance of Leaderboard
.
Examples found in repository?
examples/top_leaderboard.rs (line 41)
28fn main() {
29 let api = BBApi::new();
30 let lb = api.leaderboard()
31 .expect("Retrieving leaderboard");
32
33 print_clan(lb.top_clans());
34
35 print_player(lb.most_kills(), "Most kills", "Kills");
36 print_player(lb.most_roadkills(), "Most roadkills", "Roadkills");
37 print_player(lb.longest_kills(), "Longest kill", "Meters");
38
39 print_player(lb.most_xp(), "Most XP", "XP");
40 print_player(lb.most_heals(), "Most heal", "HP");
41 print_player(lb.most_revives(), "Most revives", "Revives");
42
43 print_player(lb.most_objectives_complete(), "Most objectives", "Objectives");
44
45 print_player(lb.most_vehicles_destroyed(), "Vehicles destroyed", "Vehicles");
46 print_player(lb.most_vehicle_repairs(), "Vehicle repairs", "Repairs");
47}
Sourcepub fn most_vehicles_destroyed(&self) -> &Vec<Player>
pub fn most_vehicles_destroyed(&self) -> &Vec<Player>
Get field most_vehicles_destroyed
from instance of Leaderboard
.
Examples found in repository?
examples/top_leaderboard.rs (line 45)
28fn main() {
29 let api = BBApi::new();
30 let lb = api.leaderboard()
31 .expect("Retrieving leaderboard");
32
33 print_clan(lb.top_clans());
34
35 print_player(lb.most_kills(), "Most kills", "Kills");
36 print_player(lb.most_roadkills(), "Most roadkills", "Roadkills");
37 print_player(lb.longest_kills(), "Longest kill", "Meters");
38
39 print_player(lb.most_xp(), "Most XP", "XP");
40 print_player(lb.most_heals(), "Most heal", "HP");
41 print_player(lb.most_revives(), "Most revives", "Revives");
42
43 print_player(lb.most_objectives_complete(), "Most objectives", "Objectives");
44
45 print_player(lb.most_vehicles_destroyed(), "Vehicles destroyed", "Vehicles");
46 print_player(lb.most_vehicle_repairs(), "Vehicle repairs", "Repairs");
47}
Sourcepub fn most_vehicle_repairs(&self) -> &Vec<Player>
pub fn most_vehicle_repairs(&self) -> &Vec<Player>
Get field most_vehicle_repairs
from instance of Leaderboard
.
Examples found in repository?
examples/top_leaderboard.rs (line 46)
28fn main() {
29 let api = BBApi::new();
30 let lb = api.leaderboard()
31 .expect("Retrieving leaderboard");
32
33 print_clan(lb.top_clans());
34
35 print_player(lb.most_kills(), "Most kills", "Kills");
36 print_player(lb.most_roadkills(), "Most roadkills", "Roadkills");
37 print_player(lb.longest_kills(), "Longest kill", "Meters");
38
39 print_player(lb.most_xp(), "Most XP", "XP");
40 print_player(lb.most_heals(), "Most heal", "HP");
41 print_player(lb.most_revives(), "Most revives", "Revives");
42
43 print_player(lb.most_objectives_complete(), "Most objectives", "Objectives");
44
45 print_player(lb.most_vehicles_destroyed(), "Vehicles destroyed", "Vehicles");
46 print_player(lb.most_vehicle_repairs(), "Vehicle repairs", "Repairs");
47}
Sourcepub fn most_roadkills(&self) -> &Vec<Player>
pub fn most_roadkills(&self) -> &Vec<Player>
Get field most_roadkills
from instance of Leaderboard
.
Examples found in repository?
examples/top_leaderboard.rs (line 36)
28fn main() {
29 let api = BBApi::new();
30 let lb = api.leaderboard()
31 .expect("Retrieving leaderboard");
32
33 print_clan(lb.top_clans());
34
35 print_player(lb.most_kills(), "Most kills", "Kills");
36 print_player(lb.most_roadkills(), "Most roadkills", "Roadkills");
37 print_player(lb.longest_kills(), "Longest kill", "Meters");
38
39 print_player(lb.most_xp(), "Most XP", "XP");
40 print_player(lb.most_heals(), "Most heal", "HP");
41 print_player(lb.most_revives(), "Most revives", "Revives");
42
43 print_player(lb.most_objectives_complete(), "Most objectives", "Objectives");
44
45 print_player(lb.most_vehicles_destroyed(), "Vehicles destroyed", "Vehicles");
46 print_player(lb.most_vehicle_repairs(), "Vehicle repairs", "Repairs");
47}
Sourcepub fn longest_kills(&self) -> &Vec<Player>
pub fn longest_kills(&self) -> &Vec<Player>
Get field longest_kills
from instance of Leaderboard
.
Examples found in repository?
examples/top_leaderboard.rs (line 37)
28fn main() {
29 let api = BBApi::new();
30 let lb = api.leaderboard()
31 .expect("Retrieving leaderboard");
32
33 print_clan(lb.top_clans());
34
35 print_player(lb.most_kills(), "Most kills", "Kills");
36 print_player(lb.most_roadkills(), "Most roadkills", "Roadkills");
37 print_player(lb.longest_kills(), "Longest kill", "Meters");
38
39 print_player(lb.most_xp(), "Most XP", "XP");
40 print_player(lb.most_heals(), "Most heal", "HP");
41 print_player(lb.most_revives(), "Most revives", "Revives");
42
43 print_player(lb.most_objectives_complete(), "Most objectives", "Objectives");
44
45 print_player(lb.most_vehicles_destroyed(), "Vehicles destroyed", "Vehicles");
46 print_player(lb.most_vehicle_repairs(), "Vehicle repairs", "Repairs");
47}
Sourcepub fn most_objectives_complete(&self) -> &Vec<Player>
pub fn most_objectives_complete(&self) -> &Vec<Player>
Get field most_objectives_complete
from instance of Leaderboard
.
Examples found in repository?
examples/top_leaderboard.rs (line 43)
28fn main() {
29 let api = BBApi::new();
30 let lb = api.leaderboard()
31 .expect("Retrieving leaderboard");
32
33 print_clan(lb.top_clans());
34
35 print_player(lb.most_kills(), "Most kills", "Kills");
36 print_player(lb.most_roadkills(), "Most roadkills", "Roadkills");
37 print_player(lb.longest_kills(), "Longest kill", "Meters");
38
39 print_player(lb.most_xp(), "Most XP", "XP");
40 print_player(lb.most_heals(), "Most heal", "HP");
41 print_player(lb.most_revives(), "Most revives", "Revives");
42
43 print_player(lb.most_objectives_complete(), "Most objectives", "Objectives");
44
45 print_player(lb.most_vehicles_destroyed(), "Vehicles destroyed", "Vehicles");
46 print_player(lb.most_vehicle_repairs(), "Vehicle repairs", "Repairs");
47}
Sourcepub fn most_kills(&self) -> &Vec<Player>
pub fn most_kills(&self) -> &Vec<Player>
Get field most_kills
from instance of Leaderboard
.
Examples found in repository?
examples/top_leaderboard.rs (line 35)
28fn main() {
29 let api = BBApi::new();
30 let lb = api.leaderboard()
31 .expect("Retrieving leaderboard");
32
33 print_clan(lb.top_clans());
34
35 print_player(lb.most_kills(), "Most kills", "Kills");
36 print_player(lb.most_roadkills(), "Most roadkills", "Roadkills");
37 print_player(lb.longest_kills(), "Longest kill", "Meters");
38
39 print_player(lb.most_xp(), "Most XP", "XP");
40 print_player(lb.most_heals(), "Most heal", "HP");
41 print_player(lb.most_revives(), "Most revives", "Revives");
42
43 print_player(lb.most_objectives_complete(), "Most objectives", "Objectives");
44
45 print_player(lb.most_vehicles_destroyed(), "Vehicles destroyed", "Vehicles");
46 print_player(lb.most_vehicle_repairs(), "Vehicle repairs", "Repairs");
47}
Trait Implementations§
Source§impl Clone for Leaderboard
impl Clone for Leaderboard
Source§fn clone(&self) -> Leaderboard
fn clone(&self) -> Leaderboard
Returns a copy 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 Leaderboard
impl Debug for Leaderboard
Source§impl Default for Leaderboard
impl Default for Leaderboard
Source§fn default() -> Leaderboard
fn default() -> Leaderboard
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Leaderboard
impl<'de> Deserialize<'de> for Leaderboard
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 From<Vec<Leaderboards>> for Leaderboard
impl From<Vec<Leaderboards>> for Leaderboard
Source§impl PartialEq for Leaderboard
impl PartialEq for Leaderboard
Source§impl Serialize for Leaderboard
impl Serialize for Leaderboard
impl StructuralPartialEq for Leaderboard
Auto Trait Implementations§
impl Freeze for Leaderboard
impl RefUnwindSafe for Leaderboard
impl Send for Leaderboard
impl Sync for Leaderboard
impl Unpin for Leaderboard
impl UnwindSafe for Leaderboard
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