Skip to main content

run_actor_of

Function run_actor_of 

Source
pub fn run_actor_of(auth: &Authenticated) -> RunActor
Expand description

Build the RunActor to persist for a run created by auth.

An API key run records both the key and its owner, so filtering runs by user also matches the runs triggered by that user’s keys.

§Examples

use ironflow_api::actor::run_actor_of;
use ironflow_auth::extractor::Authenticated;

fn example(auth: &Authenticated) {
    let actor = run_actor_of(auth);
    println!("{:?}", actor);
}