pub struct Automations<'a> { /* private fields */ }Expand description
/v1/automations.
Implementations§
Source§impl Automations<'_>
impl Automations<'_>
Sourcepub async fn list(&self) -> Result<Page<Automation>>
pub async fn list(&self) -> Result<Page<Automation>>
GET /v1/automations (bare array, normalized to Page).
Sourcepub async fn list_with(
&self,
query: &[(&str, &str)],
) -> Result<Page<Automation>>
pub async fn list_with( &self, query: &[(&str, &str)], ) -> Result<Page<Automation>>
GET /v1/automations with query params (limit).
Sourcepub async fn create(&self, body: Value) -> Result<Automation>
pub async fn create(&self, body: Value) -> Result<Automation>
POST /v1/automations — requires a non-empty name.
Sourcepub async fn get(&self, id: i64) -> Result<Automation>
pub async fn get(&self, id: i64) -> Result<Automation>
GET /v1/automations/:id.
Sourcepub async fn update(&self, id: i64, patch: Value) -> Result<Automation>
pub async fn update(&self, id: i64, patch: Value) -> Result<Automation>
PATCH /v1/automations/:id.
Trait Implementations§
Source§impl<'a> Clone for Automations<'a>
impl<'a> Clone for Automations<'a>
Source§fn clone(&self) -> Automations<'a>
fn clone(&self) -> Automations<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for Automations<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Automations<'a>
impl<'a> !UnwindSafe for Automations<'a>
impl<'a> Freeze for Automations<'a>
impl<'a> Send for Automations<'a>
impl<'a> Sync for Automations<'a>
impl<'a> Unpin for Automations<'a>
impl<'a> UnsafeUnpin for Automations<'a>
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