pub struct ContactClient { /* private fields */ }Expand description
Client for the Yuki Contact SOAP service.
Implementations§
Source§impl ContactClient
impl ContactClient
pub fn new() -> Self
Sourcepub fn with_client(http: Client) -> Self
pub fn with_client(http: Client) -> Self
Build over a caller-provided HTTP client, so a long-running consumer can share a single pooled client across all service clients.
Sourcepub async fn authenticate(&mut self, api_key: &str) -> Result<String, YukiError>
pub async fn authenticate(&mut self, api_key: &str) -> Result<String, YukiError>
Authenticate with the Yuki API and store the session ID.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ContactClient
impl !UnwindSafe for ContactClient
impl Freeze for ContactClient
impl Send for ContactClient
impl Sync for ContactClient
impl Unpin for ContactClient
impl UnsafeUnpin for ContactClient
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