pub struct Run {
pub schema: u32,
pub name: String,
pub id: u64,
pub version: String,
pub principal: String,
pub capability: BTreeSet<String>,
pub started: Option<u64>,
pub ended: Option<u64>,
pub outcome: Outcome,
pub result: Option<String>,
pub truncated: bool,
pub trace_span: Option<u64>,
}Expand description
One run: the atom urn:script:{name}:run:{id} names.
Fields§
§schema: u32§name: StringThe script.
id: u64Its number, unique per script, in order of starting.
version: StringThe version that ran.
principal: StringWho ran it: the principal the runner’s capability named
(crate::authority::principal_of), never caller-supplied.
capability: BTreeSet<String>The capability the run executed under, exactly: grants and exclusions.
started: Option<u64>When it started, from the kernel’s clock.
ended: Option<u64>When it ended.
outcome: OutcomeHow it ended.
result: Option<String>What it answered, as text, up to MAX_RECORDED_RESULT bytes.
truncated: boolWhether result was cut.
trace_span: Option<u64>The trace span the host’s tracer gave the run’s request, when the host traced it: the key into the host’s trace, which holds every verb the script issued.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Run
impl<'de> Deserialize<'de> for Run
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Run
impl StructuralPartialEq for Run
Auto Trait Implementations§
impl Freeze for Run
impl RefUnwindSafe for Run
impl Send for Run
impl Sync for Run
impl Unpin for Run
impl UnsafeUnpin for Run
impl UnwindSafe for Run
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