pub struct Team {
pub id: String,
pub name: String,
pub abbreviation: String,
pub country_code: Option<String>,
pub crest_url: Option<String>,
}Expand description
A national team.
Fields§
§id: StringProvider-specific identifier (opaque to the UI).
name: StringDisplay name, e.g. “Canada”.
abbreviation: StringShort code, e.g. “CAN”.
country_code: Option<String>ISO-ish country code where available.
crest_url: Option<String>URL to a crest/flag image, where available.
Implementations§
Source§impl Team
impl Team
Sourcepub fn placeholder(label: impl Into<String>) -> Self
pub fn placeholder(label: impl Into<String>) -> Self
A placeholder team for not-yet-decided bracket slots.
Sourcepub fn is_placeholder(&self) -> bool
pub fn is_placeholder(&self) -> bool
Whether this is a placeholder (unknown) team.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Team
impl<'de> Deserialize<'de> for Team
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
impl Eq for Team
impl StructuralPartialEq for Team
Auto Trait Implementations§
impl Freeze for Team
impl RefUnwindSafe for Team
impl Send for Team
impl Sync for Team
impl Unpin for Team
impl UnsafeUnpin for Team
impl UnwindSafe for Team
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