pub struct HTTPClient { /* private fields */ }Implementations§
Source§impl HTTPClient
impl HTTPClient
pub fn new( endpoint: impl Into<String>, builder: ClientBuilder, ) -> Result<Self, ClientError>
pub async fn create_topic( &self, topic_name: String, request: CreateTopicRequest, ) -> Result<HTTPResponse<CreateTopicResponse>, ClientError>
pub async fn publish( &self, topic_name: String, request: PublishMessageRequest, ) -> Result<HTTPResponse<PublishMessageResponse>, ClientError>
pub async fn create_subscription( &self, subscription_name: String, request: CreateSubscriptionRequest, ) -> Result<HTTPResponse<CreateSubscriptionResponse>, ClientError>
pub async fn pull( &self, subscription_name: String, request: PullMessageRequest, ) -> Result<HTTPResponse<PullMessageResponse>, ClientError>
pub async fn acknowledge( &self, subscription_name: String, request: AcknowledgeRequest, ) -> Result<HTTPResponse<AcknowledgeResponse>, ClientError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HTTPClient
impl !RefUnwindSafe for HTTPClient
impl Send for HTTPClient
impl Sync for HTTPClient
impl Unpin for HTTPClient
impl !UnwindSafe for HTTPClient
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