pub struct Client { /* private fields */ }
Implementations§
Source§impl Client
impl Client
pub fn new(c: Client) -> Self
Sourcepub async fn create(
&self,
req: &EventSourceCreate,
) -> Result<EventSource, Error>
pub async fn create( &self, req: &EventSourceCreate, ) -> Result<EventSource, Error>
Add an additional type for which this event subscription will trigger
Sourcepub async fn delete(&self, req: &EventSourceItem) -> Result<(), Error>
pub async fn delete(&self, req: &EventSourceItem) -> Result<(), Error>
Remove a type for which this event subscription will trigger
Sourcepub async fn get(&self, req: &EventSourceItem) -> Result<EventSource, Error>
pub async fn get(&self, req: &EventSourceItem) -> Result<EventSource, Error>
Get the details for a given type that triggers for the given event subscription
Sourcepub async fn list(
&self,
subscription_id: &str,
) -> Result<EventSourceList, Error>
pub async fn list( &self, subscription_id: &str, ) -> Result<EventSourceList, Error>
List the types for which this event subscription will trigger
Sourcepub async fn update(
&self,
req: &EventSourceUpdate,
) -> Result<EventSource, Error>
pub async fn update( &self, req: &EventSourceUpdate, ) -> Result<EventSource, Error>
Update the type for which this event subscription will trigger
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe 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