pub struct Distance {
pub dist: i32,
pub team1: i32,
pub team2: i32,
}Expand description
Represents the travel distance between two teams.
Fields§
§dist: i32Distance value between two teams.
team1: i32First team ID.
team2: i32Second team ID.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Distance
impl<'de> Deserialize<'de> for Distance
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 Distance
impl StructuralPartialEq for Distance
Auto Trait Implementations§
impl Freeze for Distance
impl RefUnwindSafe for Distance
impl Send for Distance
impl Sync for Distance
impl Unpin for Distance
impl UnwindSafe for Distance
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