pub struct TargetStatus {
pub id: String,
pub project: String,
pub exporter: String,
pub mode: String,
pub apply: bool,
pub reported_sha: Option<String>,
pub desired_sha: Option<String>,
pub accepted_sha: Option<String>,
pub state: String,
pub error: Option<String>,
pub status: String,
pub refusal: Option<String>,
}Expand description
What the hub knows about one target on one node.
Fields§
§id: String§project: String§exporter: String§mode: String§apply: bool§reported_sha: Option<String>§desired_sha: Option<String>What the hub would write now. None when it could not render (locked,
unknown project, or the config check failed).
accepted_sha: Option<String>For a pull target: the hash a human last accepted into the vault.
state: String§error: Option<String>§status: Stringin_sync, drift, pending, missing, changed, unreviewed,
unknown, refused.
refusal: Option<String>Why the hub withheld a push, when status is refused.
Trait Implementations§
Source§impl Clone for TargetStatus
impl Clone for TargetStatus
Source§fn clone(&self) -> TargetStatus
fn clone(&self) -> TargetStatus
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 TargetStatus
impl Debug for TargetStatus
Source§impl<'de> Deserialize<'de> for TargetStatus
impl<'de> Deserialize<'de> for TargetStatus
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 TargetStatus
impl PartialEq for TargetStatus
Source§impl Serialize for TargetStatus
impl Serialize for TargetStatus
impl StructuralPartialEq for TargetStatus
Auto Trait Implementations§
impl Freeze for TargetStatus
impl RefUnwindSafe for TargetStatus
impl Send for TargetStatus
impl Sync for TargetStatus
impl Unpin for TargetStatus
impl UnsafeUnpin for TargetStatus
impl UnwindSafe for TargetStatus
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