pub struct Relationship {
pub v: u8,
pub from: String,
pub rel_type: RelType,
pub to: String,
pub evidence_ref: Option<String>,
pub attestation_ref: Option<String>,
}Expand description
Relationship (without id): typed directed edge between object ids.
from/to reference verified artifact ids (events, attestations, evidence,
or external object ids known to the verifier). Trust-relevant types MUST
carry evidence_ref or attestation_ref (enforced in proof-graph).
Fields§
§v: u8§from: String§rel_type: RelType§to: String§evidence_ref: Option<String>§attestation_ref: Option<String>Trait Implementations§
Source§impl Clone for Relationship
impl Clone for Relationship
Source§impl Debug for Relationship
impl Debug for Relationship
impl Eq for Relationship
Source§impl PartialEq for Relationship
impl PartialEq for Relationship
impl StructuralPartialEq for Relationship
Auto Trait Implementations§
impl Freeze for Relationship
impl RefUnwindSafe for Relationship
impl Send for Relationship
impl Sync for Relationship
impl Unpin for Relationship
impl UnsafeUnpin for Relationship
impl UnwindSafe for Relationship
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