pub struct AutomationsResource { /* private fields */ }Expand description
Global automations (event triggers) — /api/v2/events/triggers.
Implementations§
Source§impl AutomationsResource
impl AutomationsResource
Sourcepub async fn list_all(&self) -> Result<Vec<GlobalAutomation>, ManagerError>
pub async fn list_all(&self) -> Result<Vec<GlobalAutomation>, ManagerError>
List all global automations (auto-paginated).
Sourcepub async fn create(
&self,
body: RestCreateGlobalAutomation,
) -> Result<GlobalAutomationItemResponse, ManagerError>
pub async fn create( &self, body: RestCreateGlobalAutomation, ) -> Result<GlobalAutomationItemResponse, ManagerError>
Create a global automation.
Sourcepub async fn get(
&self,
id: &str,
) -> Result<GlobalAutomationItemResponse, ManagerError>
pub async fn get( &self, id: &str, ) -> Result<GlobalAutomationItemResponse, ManagerError>
Get a global automation by id.
Sourcepub async fn update(
&self,
id: &str,
body: RestUpdateGlobalAutomation,
) -> Result<GlobalAutomationItemResponse, ManagerError>
pub async fn update( &self, id: &str, body: RestUpdateGlobalAutomation, ) -> Result<GlobalAutomationItemResponse, ManagerError>
Update a global automation.
Sourcepub async fn clone(
&self,
id: &str,
) -> Result<GlobalAutomationItemResponse, ManagerError>
pub async fn clone( &self, id: &str, ) -> Result<GlobalAutomationItemResponse, ManagerError>
Clone a global automation; returns the new automation.
Sourcepub async fn bulk_update(
&self,
body: BulkUpdateRequest,
) -> Result<ObjectListResponse, ManagerError>
pub async fn bulk_update( &self, body: BulkUpdateRequest, ) -> Result<ObjectListResponse, ManagerError>
Bulk-update global automations.
Sourcepub async fn bulk_delete(
&self,
ids: Vec<String>,
) -> Result<DefaultV2MessageResponse, ManagerError>
pub async fn bulk_delete( &self, ids: Vec<String>, ) -> Result<DefaultV2MessageResponse, ManagerError>
Bulk-delete global automations by id.
Auto Trait Implementations§
impl !RefUnwindSafe for AutomationsResource
impl !UnwindSafe for AutomationsResource
impl Freeze for AutomationsResource
impl Send for AutomationsResource
impl Sync for AutomationsResource
impl Unpin for AutomationsResource
impl UnsafeUnpin for AutomationsResource
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