pub struct LibraryClient { /* private fields */ }Expand description
Reads and writes the library through the Authenticator.
Implementations§
Source§impl LibraryClient
impl LibraryClient
pub fn new(auth: Arc<Authenticator>) -> Self
Sourcepub async fn request(
&self,
request: LibraryRequest,
page_size: u32,
hidden_words: &[String],
) -> Result<LibraryResponse, LibraryError>
pub async fn request( &self, request: LibraryRequest, page_size: u32, hidden_words: &[String], ) -> Result<LibraryResponse, LibraryError>
Answers one request. page_size (1-10 000) is the size of the first
page of each list in a Page request; More carries its own
limit. Each request is clamped to the endpoint’s largest page.
hidden_words is the hidden-version word list of the credits.
Trait Implementations§
Source§impl Clone for LibraryClient
impl Clone for LibraryClient
Auto Trait Implementations§
impl !RefUnwindSafe for LibraryClient
impl !UnwindSafe for LibraryClient
impl Forget for LibraryClient
impl Freeze for LibraryClient
impl Send for LibraryClient
impl Sync for LibraryClient
impl Unpin for LibraryClient
impl UnsafeUnpin for LibraryClient
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