pub struct EdgeRecord {
pub content: Relationship,
pub id: String,
}Expand description
A relationship whose bytes have already been verified (id binding checked).
Fields§
§content: Relationship§id: StringImplementations§
Source§impl EdgeRecord
impl EdgeRecord
Sourcepub fn new(content: Relationship, id: String) -> Self
pub fn new(content: Relationship, id: String) -> Self
Construct from already-verified parts. CALLER MUST have checked the id
binding first (e.g. proof-crypto::build::verify_relationship); this
constructor cannot tell a forged id from a real one.
Trait Implementations§
Source§impl Clone for EdgeRecord
impl Clone for EdgeRecord
Auto Trait Implementations§
impl Freeze for EdgeRecord
impl RefUnwindSafe for EdgeRecord
impl Send for EdgeRecord
impl Sync for EdgeRecord
impl Unpin for EdgeRecord
impl UnsafeUnpin for EdgeRecord
impl UnwindSafe for EdgeRecord
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