pub struct TargetReport {
pub id: String,
pub project: String,
pub exporter: String,
pub mode: String,
pub apply: bool,
pub sha256: Option<String>,
pub state: String,
pub error: Option<String>,
}Expand description
One target as the node reports it. Hash and state only; never content.
Fields§
§id: String§project: String§exporter: String§mode: Stringpush (vault to file) or pull (file to vault).
apply: boolWhether this node will write the file. Declared by the operator in the node’s own config; the hub cannot change it.
sha256: Option<String>SHA-256 of the file on disk, or None when it does not exist.
state: Stringok, missing, unreadable, applied, failed.
error: Option<String>Trait Implementations§
Source§impl Clone for TargetReport
impl Clone for TargetReport
Source§fn clone(&self) -> TargetReport
fn clone(&self) -> TargetReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TargetReport
impl Debug for TargetReport
Source§impl<'de> Deserialize<'de> for TargetReport
impl<'de> Deserialize<'de> for TargetReport
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
Source§impl PartialEq for TargetReport
impl PartialEq for TargetReport
Source§impl Serialize for TargetReport
impl Serialize for TargetReport
impl StructuralPartialEq for TargetReport
Auto Trait Implementations§
impl Freeze for TargetReport
impl RefUnwindSafe for TargetReport
impl Send for TargetReport
impl Sync for TargetReport
impl Unpin for TargetReport
impl UnsafeUnpin for TargetReport
impl UnwindSafe for TargetReport
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