pub struct Node {
pub id: NodeId,
pub kind: NodeKind,
pub name: String,
pub trust_zone: TrustZone,
pub metadata: HashMap<String, String>,
}Expand description
A node in the authority graph.
Fields§
§id: NodeId§kind: NodeKind§name: String§trust_zone: TrustZone§metadata: HashMap<String, String>Flexible metadata: pinning status, digest, scope, permissions, etc. Serialized in sorted-key order so JSON / SARIF / CloudEvents output is byte-deterministic across runs (HashMap iteration is randomised per process, which would otherwise break diffs and cache keys).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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