pub struct SalesClient { /* private fields */ }Expand description
Client for the Yuki Sales SOAP service.
Implementations§
Source§impl SalesClient
impl SalesClient
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 SalesClient
impl !UnwindSafe for SalesClient
impl Freeze for SalesClient
impl Send for SalesClient
impl Sync for SalesClient
impl Unpin for SalesClient
impl UnsafeUnpin for SalesClient
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