pub struct Client { /* private fields */ }
Implementations§
Source§impl Client
impl Client
pub fn new(c: Client) -> Self
Sourcepub async fn create(
&self,
req: &EventDestinationCreate,
) -> Result<EventDestination, Error>
pub async fn create( &self, req: &EventDestinationCreate, ) -> Result<EventDestination, Error>
Create a new Event Destination. It will not apply to anything until it is associated with an Event Subscription.
Sourcepub async fn delete(&self, id: &str) -> Result<(), Error>
pub async fn delete(&self, id: &str) -> Result<(), Error>
Delete an Event Destination. If the Event Destination is still referenced by an Event Subscription.
Sourcepub async fn get(&self, id: &str) -> Result<EventDestination, Error>
pub async fn get(&self, id: &str) -> Result<EventDestination, Error>
Get detailed information about an Event Destination by ID.
Sourcepub async fn update(
&self,
req: &EventDestinationUpdate,
) -> Result<EventDestination, Error>
pub async fn update( &self, req: &EventDestinationUpdate, ) -> Result<EventDestination, Error>
Update attributes of an Event Destination.
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