pub struct Guardianship {
pub stewards: Vec<Steward>,
pub credentials: Vec<CredentialRef>,
}Expand description
Guardianship as a permissive-commons stewardship among Stewards — the correct model for an
infant/child, and the illustration of why “self-sovereign” is wrong (an infant is not sovereign; it is
stewarded, between guardians, in a commons). Not a single owner: a set of stewards holding distributed
responsibilities, in the child’s interest. By default the biological parents, subject to official
credentials (br:hasCredential) that confirm, add, or override stewards.
Fields§
§stewards: Vec<Steward>The stewardship commons.
credentials: Vec<CredentialRef>Official credentials bearing on stewardship (br:hasCredential).
Implementations§
Source§impl Guardianship
impl Guardianship
Sourcepub fn guardians(&self) -> Vec<&PrincipalRef>
pub fn guardians(&self) -> Vec<&PrincipalRef>
The principals who steward the child (br:isGuardianOf → the subject).
Sourcepub fn is_credentialed(&self) -> bool
pub fn is_credentialed(&self) -> bool
Whether any steward holds their role by official credential (vs the biological default alone).
Sourcepub fn stewards_with(&self, role: &StewardRole) -> Vec<&Steward>
pub fn stewards_with(&self, role: &StewardRole) -> Vec<&Steward>
Stewards holding a particular responsibility — supports the “different roles held by different guardians” reality (e.g. who is the medical decision-maker).