pub struct Card {
pub name: String,
pub scryfall_id: Uuid,
pub legalities: Legalities,
pub color_identity: Colors,
pub layout: Layout,
pub images_uris: Option<ImageUris>,
}Expand description
A parsed card.
This is the main data type used and passed around.
Fields§
§name: String§scryfall_id: Uuid§legalities: Legalities§color_identity: Colors§layout: Layout§images_uris: Option<ImageUris>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Card
impl<'de> Deserialize<'de> for Card
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 Card
impl RefUnwindSafe for Card
impl Send for Card
impl Sync for Card
impl Unpin for Card
impl UnwindSafe for Card
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