#[non_exhaustive]pub enum GeneratedSpec {
Qr {
data: String,
ec: QrEcLevel,
},
Fen {
fen: String,
board: BoardOptions,
},
Pgn {
pgn: String,
ply: Option<usize>,
board: BoardOptions,
},
}Expand description
What to generate. Non-exhaustive: new kinds arrive as new variants, and
super::CapabilitiesResponse::generators says which ones a server has.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Qr
A QR code encoding data verbatim, as SVG.
Fen
A chess board showing the position fen (full FEN or just its
placement field), as SVG.
{"path": "board.svg", "kind": "fen", "fen": "8/8/8/4k3/8/8/8/4K3", "flip": true}Pgn
A chess board showing a PGN game’s mainline after half-move move
(0 = the starting position); absent means the final position.
Trait Implementations§
Source§impl Clone for GeneratedSpec
impl Clone for GeneratedSpec
Source§impl Debug for GeneratedSpec
impl Debug for GeneratedSpec
Source§impl<'de> Deserialize<'de> for GeneratedSpec
impl<'de> Deserialize<'de> for GeneratedSpec
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 GeneratedSpec
Source§impl PartialEq for GeneratedSpec
impl PartialEq for GeneratedSpec
Source§impl Serialize for GeneratedSpec
impl Serialize for GeneratedSpec
impl StructuralPartialEq for GeneratedSpec
Auto Trait Implementations§
impl Freeze for GeneratedSpec
impl RefUnwindSafe for GeneratedSpec
impl Send for GeneratedSpec
impl Sync for GeneratedSpec
impl Unpin for GeneratedSpec
impl UnsafeUnpin for GeneratedSpec
impl UnwindSafe for GeneratedSpec
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