pub struct ApprovalRecord {Show 16 fields
pub id: String,
pub node_id: String,
pub target: String,
pub project: String,
pub exporter: String,
pub sha256: String,
pub from_sha: Option<String>,
pub from_seq: Option<i64>,
pub to_seq: Option<i64>,
pub requested_at: String,
pub requested_secs: i64,
pub status: String,
pub decided_at: Option<String>,
pub decided_secs: Option<i64>,
pub decided_by: Option<String>,
pub signed: Option<SignedApproval>,
}Expand description
A request for a human to say yes to these exact bytes for this node target. Holds hashes and snapshot numbers, never content: the content is in the config history, where the human reads it as a diff.
Fields§
§id: String§node_id: String§target: String§project: String§exporter: String§sha256: StringSHA-256 of the proposed file. The approval is for this and nothing else.
from_sha: Option<String>What the node reported having when the request was made.
from_seq: Option<i64>History snapshot of the file the node has (when known) and of the proposal.
to_seq: Option<i64>§requested_at: String§requested_secs: i64§status: Stringpending, approved, rejected, consumed, expired.
decided_at: Option<String>§decided_secs: Option<i64>§decided_by: Option<String>§signed: Option<SignedApproval>Set when the yes was signed on the owner’s own device (Phase 37.1); the hub then sends exactly this and never signs an approval itself.
Trait Implementations§
Source§impl Clone for ApprovalRecord
impl Clone for ApprovalRecord
Source§fn clone(&self) -> ApprovalRecord
fn clone(&self) -> ApprovalRecord
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 ApprovalRecord
impl Debug for ApprovalRecord
Source§impl<'de> Deserialize<'de> for ApprovalRecord
impl<'de> Deserialize<'de> for ApprovalRecord
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 ApprovalRecord
impl PartialEq for ApprovalRecord
Source§impl Serialize for ApprovalRecord
impl Serialize for ApprovalRecord
impl StructuralPartialEq for ApprovalRecord
Auto Trait Implementations§
impl Freeze for ApprovalRecord
impl RefUnwindSafe for ApprovalRecord
impl Send for ApprovalRecord
impl Sync for ApprovalRecord
impl Unpin for ApprovalRecord
impl UnsafeUnpin for ApprovalRecord
impl UnwindSafe for ApprovalRecord
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