pub struct GuardianshipProposal {
pub id: String,
pub principal_did: String,
pub proxy_did: String,
pub threshold: u8,
pub escrowed_kind: String,
pub escrowed_envelope_json: String,
pub escrowed_summary: Option<String>,
pub reason: String,
pub created_unix: u32,
pub created_instant: Option<InstantBridge>,
}Expand description
A proxy write held pending M-of-N guardian co-signature.
Fields§
§id: String§principal_did: StringThe principal on whose behalf the proxy acted (the escrowed record’s owner).
proxy_did: StringThe agent that proposed the write (the proxy / supporter).
threshold: u8Number of distinct guardian approvals required to ratify (always ≥ 1).
escrowed_kind: StringJournal kind of the escrowed record (for the tray label / filtering).
escrowed_envelope_json: StringThe escrowed RecordEnvelope, serialized — committed verbatim on ratification.
escrowed_summary: Option<String>The escrowed record’s UI summary, re-attached on commit.
reason: StringHuman-readable reason the write needs co-signature.
created_unix: u32§created_instant: Option<InstantBridge>High-resolution instant (T71 bridge). Preferred over created_unix
when present; the u32 field is kept for backward-compatible deserialization.
Implementations§
Source§impl GuardianshipProposal
impl GuardianshipProposal
Sourcepub fn new(
principal_did: impl Into<String>,
proxy_did: impl Into<String>,
threshold: u8,
escrowed: &RecordEnvelope,
escrowed_summary: Option<String>,
reason: impl Into<String>,
created_unix: u32,
) -> Self
pub fn new( principal_did: impl Into<String>, proxy_did: impl Into<String>, threshold: u8, escrowed: &RecordEnvelope, escrowed_summary: Option<String>, reason: impl Into<String>, created_unix: u32, ) -> Self
Creates a new instance.
Sourcepub fn created_at(&self) -> InstantBridge
pub fn created_at(&self) -> InstantBridge
Resolve the created instant, preferring the high-resolution
InstantBridge field when present (T71 bridge).
Sourcepub fn escrowed_envelope(&self) -> Option<RecordEnvelope>
pub fn escrowed_envelope(&self) -> Option<RecordEnvelope>
Deserialize the escrowed envelope (committed verbatim on ratification).
Sourcepub fn escrowed_record_id(&self) -> Option<String>
pub fn escrowed_record_id(&self) -> Option<String>
The escrowed record id — the stable key used for idempotent commit-on-ratify.