pub struct RelationshipsSection {
pub parent_organization: Option<String>,
pub affiliations: Vec<Affiliation>,
pub blocked_dids: Vec<String>,
}Expand description
Relationships and affiliations section of an OAS Identity Document.
§Examples
use oas_document::relationships::{RelationshipsSection, Affiliation};
let rels = RelationshipsSection {
parent_organization: Some("did:oas:prod:enr:acme-corp".to_string()),
affiliations: vec![
Affiliation {
did: "did:oas:prod:ao:ai-lab".to_string(),
relationship: "member".to_string(),
label: Some("AI Research Lab".to_string()),
},
],
blocked_dids: vec![],
};
assert!(rels.parent_organization.is_some());Fields§
§parent_organization: Option<String>DID of the parent organization (ENR or AO).
Distinct from lineage creator_did — this is an organizational
relationship, not a derivation chain link.
affiliations: Vec<Affiliation>Voluntary affiliations (teams, partnerships, memberships).
blocked_dids: Vec<String>DIDs that this entity refuses to interact with. Stored as public assertions to enable pre-flight checks.
Trait Implementations§
Source§impl Clone for RelationshipsSection
impl Clone for RelationshipsSection
Source§impl Debug for RelationshipsSection
impl Debug for RelationshipsSection
Source§impl<'de> Deserialize<'de> for RelationshipsSection
impl<'de> Deserialize<'de> for RelationshipsSection
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 RelationshipsSection
Source§impl PartialEq for RelationshipsSection
impl PartialEq for RelationshipsSection
Source§impl Serialize for RelationshipsSection
impl Serialize for RelationshipsSection
impl StructuralPartialEq for RelationshipsSection
Auto Trait Implementations§
impl Freeze for RelationshipsSection
impl RefUnwindSafe for RelationshipsSection
impl Send for RelationshipsSection
impl Sync for RelationshipsSection
impl Unpin for RelationshipsSection
impl UnsafeUnpin for RelationshipsSection
impl UnwindSafe for RelationshipsSection
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