pub struct EventsResource { /* private fields */ }Expand description
Event definitions & custom events — /api/v2/events.
Implementations§
Source§impl EventsResource
impl EventsResource
Sourcepub async fn list(&self) -> Result<Vec<Event>, ManagerError>
pub async fn list(&self) -> Result<Vec<Event>, ManagerError>
List the known events.
Sourcepub async fn create_custom(
&self,
body: CustomEventRequest,
) -> Result<EventItemResponse, ManagerError>
pub async fn create_custom( &self, body: CustomEventRequest, ) -> Result<EventItemResponse, ManagerError>
Create a custom event.
Sourcepub async fn delete_custom(&self, id: &str) -> Result<(), ManagerError>
pub async fn delete_custom(&self, id: &str) -> Result<(), ManagerError>
Delete a custom event.
Auto Trait Implementations§
impl !RefUnwindSafe for EventsResource
impl !UnwindSafe for EventsResource
impl Freeze for EventsResource
impl Send for EventsResource
impl Sync for EventsResource
impl Unpin for EventsResource
impl UnsafeUnpin for EventsResource
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