pub struct MapViewResult {
pub room_name: String,
pub turn: u32,
pub next_player: String,
pub map: Vec<Vec<TileId>>,
pub players: Vec<PlayerInfo>,
}Expand description
Full result of a map view fetch.
Fields§
§room_name: String§turn: u32§next_player: String§map: Vec<Vec<TileId>>Map cells as a 2D array [row][col].
players: Vec<PlayerInfo>Trait Implementations§
Source§impl Clone for MapViewResult
impl Clone for MapViewResult
Source§fn clone(&self) -> MapViewResult
fn clone(&self) -> MapViewResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MapViewResult
impl RefUnwindSafe for MapViewResult
impl Send for MapViewResult
impl Sync for MapViewResult
impl Unpin for MapViewResult
impl UnsafeUnpin for MapViewResult
impl UnwindSafe for MapViewResult
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