pub struct Tile {
pub tile_id: String,
pub tile_center: String,
pub tile_edges: Vec<Edge>,
}
Expand description
map this struct with serde_json::from_str()
| struct holds tile_id: String
, tile_center: string
, tile_edges: Vec<Edge>
Fields§
§tile_id: String
Retrieved with global function identify_tile()
tile_center: String
center value of a tile
tile_edges: Vec<Edge>
Vec<Edge>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tile
impl<'de> Deserialize<'de> for Tile
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
Auto Trait Implementations§
impl Freeze for Tile
impl RefUnwindSafe for Tile
impl Send for Tile
impl Sync for Tile
impl Unpin for Tile
impl UnwindSafe for Tile
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