pub struct PartResult {
pub part: String,
pub state: State,
pub action: Option<Action>,
pub path: String,
pub by: Option<String>,
}Expand description
One part of a harness.
Fields§
§part: StringThe name of the part, for example skills or hooks.
state: StateThe state in which the command found the part, before it wrote anything: skipped,
shared, absent, current, stale, or edited.
action: Option<Action>For install, what the command did to the part: created, rewrote, or updated.
The key is absent when the command left the part as it found it, and always for
status.
path: StringThe file or directory to which the command writes the part: a path from the
repository root, which starts with /, or at the user scope a path from the home
directory, which starts with ~/. For a shared part, the location that another
harness writes.
by: Option<String>For a shared part, the harness whose part writes it. The key is absent for every other part.
Implementations§
Trait Implementations§
Source§impl Clone for PartResult
impl Clone for PartResult
Source§impl Debug for PartResult
impl Debug for PartResult
impl Eq for PartResult
Source§impl JsonSchema for PartResult
impl JsonSchema for PartResult
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for PartResult
impl PartialEq for PartResult
Source§impl Serialize for PartResult
impl Serialize for PartResult
impl StructuralPartialEq for PartResult
Auto Trait Implementations§
impl Forget for PartResult
impl Freeze for PartResult
impl Move for PartResult
impl RefUnwindSafe for PartResult
impl Send for PartResult
impl Sync for PartResult
impl Unpin for PartResult
impl UnsafeUnpin for PartResult
impl UnwindSafe for PartResult
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.