pub struct Client { /* private fields */ }Expand description
Main entry point: A client for the EVE-NG API.
Implementations§
Source§impl Client
impl Client
Sourcepub async fn login(
base_url: impl AsRef<str>,
username: impl Into<String>,
password: impl Into<String>,
) -> Result<Client>
pub async fn login( base_url: impl AsRef<str>, username: impl Into<String>, password: impl Into<String>, ) -> Result<Client>
Creates a new API client.
Sourcepub fn builder(base_url: impl AsRef<str>) -> Result<ClientBuilder>
pub fn builder(base_url: impl AsRef<str>) -> Result<ClientBuilder>
Returns a builder to customize client configuration.
Sourcepub fn system(&self) -> SystemClient
pub fn system(&self) -> SystemClient
Returns a client for system-level information.
Sourcepub fn folder(&self, path: impl AsRef<str>) -> Result<FolderClient>
pub fn folder(&self, path: impl AsRef<str>) -> Result<FolderClient>
Returns a client to manage a single folder.
Sourcepub fn users(&self) -> UsersClient
pub fn users(&self) -> UsersClient
Returns a client to manage users.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Freeze for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
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