pub struct ActionsResource<'a> { /* private fields */ }Expand description
client.actions()
Implementations§
Source§impl<'a> ActionsResource<'a>
impl<'a> ActionsResource<'a>
Sourcepub fn filter(&self, body: &PostActionsBody) -> Result<Vec<Action>>
pub fn filter(&self, body: &PostActionsBody) -> Result<Vec<Action>>
Get filtered actions
POST /actions
Returns all available actions filtered by one or more domain types. Actions represent executable operations on domain objects (e.g. adding a member to a group, changing a member status). The optional filter object can be used to further narrow down the returned actions based on domain-specific criteria.
§Example
let body = models::PostActionsBody {
domain_type: vec!["group_membership".into()],
..Default::default()
};
for action in client.actions().filter(&body)? {
println!("{}", action.domain_type);
}Trait Implementations§
Source§impl<'a> Clone for ActionsResource<'a>
impl<'a> Clone for ActionsResource<'a>
impl<'a> Copy for ActionsResource<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ActionsResource<'a>
impl<'a> !UnwindSafe for ActionsResource<'a>
impl<'a> Freeze for ActionsResource<'a>
impl<'a> Send for ActionsResource<'a>
impl<'a> Sync for ActionsResource<'a>
impl<'a> Unpin for ActionsResource<'a>
impl<'a> UnsafeUnpin for ActionsResource<'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