pub struct ActivityFacts {
pub diff_stat: Option<DiffStat>,
pub duration: Option<Duration>,
pub failure: Option<ActivityFailure>,
pub lines: Option<LineRange>,
pub pipe_status: Vec<i64>,
pub reason: Option<String>,
pub signal: Option<i64>,
pub target: Option<String>,
}Expand description
Structured facts about one operation, each present only when the provider reports it. Text fields are bounded single lines.
Fields§
§diff_stat: Option<DiffStat>Lines a file change added and removed.
duration: Option<Duration>Time the operation took.
failure: Option<ActivityFailure>Why a failed operation failed, when the provider says.
lines: Option<LineRange>Line range a file read covered.
pipe_status: Vec<i64>Exit statuses of each stage of a command’s final pipeline, first stage first, when it had more than one. Display-only: the command can influence it.
reason: Option<String>First line of the provider’s explanation of a failure, such as
hunk 1 context mismatch at line 1216.
signal: Option<i64>Signal that terminated a command.
target: Option<String>What the operation acted on: a path, a search query, or a command flattened to one line.
Trait Implementations§
Source§impl Clone for ActivityFacts
impl Clone for ActivityFacts
Source§impl Debug for ActivityFacts
impl Debug for ActivityFacts
Source§impl Default for ActivityFacts
impl Default for ActivityFacts
impl Eq for ActivityFacts
Source§impl PartialEq for ActivityFacts
impl PartialEq for ActivityFacts
impl StructuralPartialEq for ActivityFacts
Auto Trait Implementations§
impl Forget for ActivityFacts
impl Freeze for ActivityFacts
impl Move for ActivityFacts
impl RefUnwindSafe for ActivityFacts
impl Send for ActivityFacts
impl Sync for ActivityFacts
impl Unpin for ActivityFacts
impl UnsafeUnpin for ActivityFacts
impl UnwindSafe for ActivityFacts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.