pub struct ServerApi { /* private fields */ }Expand description
Calls on a whole server.
Implementations§
Source§impl ServerApi
impl ServerApi
pub fn new(client: RedseatClient) -> Self
pub fn client(&self) -> &RedseatClient
Sourcepub async fn get_libraries(&self) -> Result<Vec<ServerLibrary>>
pub async fn get_libraries(&self) -> Result<Vec<ServerLibrary>>
The libraries the user can read.
The server leaves out settings and root for libraries the user does not
administer: those read as default settings and no root.
Sourcepub fn library(&self, library: ServerLibrary) -> LibraryApi
pub fn library(&self, library: ServerLibrary) -> LibraryApi
A LibraryApi for library.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ServerApi
impl !UnwindSafe for ServerApi
impl Forget for ServerApi
impl Freeze for ServerApi
impl Move for ServerApi
impl Send for ServerApi
impl Sync for ServerApi
impl Unpin for ServerApi
impl UnsafeUnpin for ServerApi
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