pub struct KrabkaClient { /* private fields */ }Expand description
Rust application SDK client.
Implementations§
Source§impl KrabkaClient
impl KrabkaClient
Sourcepub fn builder() -> KrabkaClientBuilder
pub fn builder() -> KrabkaClientBuilder
Start building a client.
Sourcepub fn new(endpoint: impl Into<String>) -> Result<Self, KrabkaError>
pub fn new(endpoint: impl Into<String>) -> Result<Self, KrabkaError>
Create a client for an endpoint with default options.
§Errors
Returns KrabkaError::InvalidArgument when required client
configuration is missing.
Sourcepub fn messaging(&self) -> MessagingClient
pub fn messaging(&self) -> MessagingClient
Access the messaging module.
Sourcepub fn queues(&self) -> QueuesClient
pub fn queues(&self) -> QueuesClient
Access the queues module.
Sourcepub fn database(&self) -> DatabaseClient
pub fn database(&self) -> DatabaseClient
Access the database module.
Sourcepub fn auth(&self) -> AuthClient
pub fn auth(&self) -> AuthClient
Access the auth module.
Sourcepub fn blob(&self) -> BlobClient
pub fn blob(&self) -> BlobClient
Access the blob module.
Trait Implementations§
Source§impl Clone for KrabkaClient
impl Clone for KrabkaClient
Source§fn clone(&self) -> KrabkaClient
fn clone(&self) -> KrabkaClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KrabkaClient
impl RefUnwindSafe for KrabkaClient
impl Send for KrabkaClient
impl Sync for KrabkaClient
impl Unpin for KrabkaClient
impl UnsafeUnpin for KrabkaClient
impl UnwindSafe for KrabkaClient
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