Struct openlibrary_rs::books::Books
source · [−]pub struct Books { /* private fields */ }
Expand description
The struct representation of a request to the Books API
The fields of this struct are private. If you want to view available fields that can be set please look at the BooksBuilder
struct.
Implementations
sourceimpl Books
impl Books
sourcepub fn execute(&self) -> HashMap<String, Value>
pub fn execute(&self) -> HashMap<String, Value>
Function to execute the request defined by the struct and get back a response
Example
use openlibrary_rs::books::{BooksBuilder, BookType};
let results = BooksBuilder::default()
.book_type(BookType::Works)
.id("OL45883W")
.build()
.unwrap();
println!("{:#?}", results.execute());
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Books
impl Send for Books
impl Sync for Books
impl Unpin for Books
impl UnwindSafe for Books
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more