pub struct DeckQuery<'a> { /* private fields */ }Expand description
Query interface for MTG decks backed by the cached DeckList.json data.
Implementations§
Source§impl<'a> DeckQuery<'a>
impl<'a> DeckQuery<'a>
Sourcepub fn new(conn: &'a Connection) -> Self
pub fn new(conn: &'a Connection) -> Self
Create a new DeckQuery bound to the given connection.
Sourcepub fn list(
&self,
set_code: Option<&str>,
deck_type: Option<&str>,
) -> Result<Vec<Value>>
pub fn list( &self, set_code: Option<&str>, deck_type: Option<&str>, ) -> Result<Vec<Value>>
List all decks, optionally filtered by set code and/or deck type.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DeckQuery<'a>
impl<'a> !Send for DeckQuery<'a>
impl<'a> !Sync for DeckQuery<'a>
impl<'a> !UnwindSafe for DeckQuery<'a>
impl<'a> Freeze for DeckQuery<'a>
impl<'a> Unpin for DeckQuery<'a>
impl<'a> UnsafeUnpin for DeckQuery<'a>
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