pub struct Agreement {Show 13 fields
pub id: String,
pub title: String,
pub relationship_did: String,
pub parties: Vec<String>,
pub values_anchors: Vec<String>,
pub jurisdiction: Option<String>,
pub intents: Vec<String>,
pub artifact_context: Option<String>,
pub undertakings: Vec<Undertaking>,
pub consents: Vec<PartyConsent>,
pub stage: FormationStage,
pub created_at: u64,
pub updated_at: u64,
}Expand description
The recorded terms of a relationship between parties, grounded in values-credentials.
Fields§
§id: StringStable identifier for this agreement (the store key).
title: StringHuman-readable title.
relationship_did: StringThe DID of the relationship this agreement governs (joins to the directory).
parties: Vec<String>The parties to this agreement, by DID.
values_anchors: Vec<String>The values-credentials this agreement is anchored in (e.g. UDHR article ids).
jurisdiction: Option<String>The choice of law / jurisdiction governing this agreement (e.g. urn:jurisdiction:AU).
intents: Vec<String>The intended purposes of the agreement (e.g. urn:intent:public-good).
artifact_context: Option<String>The contextual nature of the artifact being produced or licensed (e.g. urn:context:humanitarian-ict).
undertakings: Vec<Undertaking>The terms of the agreement.
consents: Vec<PartyConsent>Per-party consent records.
stage: FormationStageWhere the agreement is in its formation lifecycle.
created_at: u64Unix seconds at which the agreement was created.
updated_at: u64Unix seconds at which the agreement was last updated.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Agreement
impl<'de> Deserialize<'de> for Agreement
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>,
impl StructuralPartialEq for Agreement
Auto Trait Implementations§
impl Freeze for Agreement
impl RefUnwindSafe for Agreement
impl Send for Agreement
impl Sync for Agreement
impl Unpin for Agreement
impl UnsafeUnpin for Agreement
impl UnwindSafe for Agreement
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more