pub struct Affiliation {
pub did: String,
pub relationship: String,
pub label: Option<String>,
}Expand description
A relationship to another OAS entity.
§Examples
use oas_document::relationships::Affiliation;
let aff = Affiliation {
did: "did:oas:prod:ao:research-team".to_string(),
relationship: "member".to_string(),
label: Some("Research Team".to_string()),
};Fields§
§did: StringDID of the related entity.
relationship: StringRelationship type: "member", "partner", "subsidiary",
"affiliate", "delegate", "advisor".
label: Option<String>Human-readable label for this affiliation.
Trait Implementations§
Source§impl Clone for Affiliation
impl Clone for Affiliation
Source§impl Debug for Affiliation
impl Debug for Affiliation
Source§impl<'de> Deserialize<'de> for Affiliation
impl<'de> Deserialize<'de> for Affiliation
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
impl Eq for Affiliation
Source§impl PartialEq for Affiliation
impl PartialEq for Affiliation
Source§impl Serialize for Affiliation
impl Serialize for Affiliation
impl StructuralPartialEq for Affiliation
Auto Trait Implementations§
impl Freeze for Affiliation
impl RefUnwindSafe for Affiliation
impl Send for Affiliation
impl Sync for Affiliation
impl Unpin for Affiliation
impl UnsafeUnpin for Affiliation
impl UnwindSafe for Affiliation
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