pub struct PcaPayload {
pub hop: String,
pub p_0: String,
pub ops: Vec<String>,
pub executor: Executor,
pub provenance: Option<Provenance>,
pub constraints: Option<Constraints>,
}Expand description
PCA Payload - the CBOR content signed with COSE_Sign1.
The issuer and signature are stored in the COSE header, not here. This structure contains only the payload fields.
Fields§
§hop: StringUnique identifier for this hop
p_0: StringImmutable origin principal (p_0)
ops: Vec<String>Authority set (ops_i ⊆ ops_{i-1})
executor: ExecutorCurrent executor binding
provenance: Option<Provenance>Causal chain reference (None for PCA_0)
constraints: Option<Constraints>Validity constraints
Implementations§
Source§impl PcaPayload
impl PcaPayload
Trait Implementations§
Source§impl Clone for PcaPayload
impl Clone for PcaPayload
Source§fn clone(&self) -> PcaPayload
fn clone(&self) -> PcaPayload
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PcaPayload
impl Debug for PcaPayload
Source§impl<'de> Deserialize<'de> for PcaPayload
impl<'de> Deserialize<'de> for PcaPayload
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PcaPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PcaPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PcaPayload
impl PartialEq for PcaPayload
Source§impl Serialize for PcaPayload
impl Serialize for PcaPayload
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PcaPayload
Auto Trait Implementations§
impl Freeze for PcaPayload
impl RefUnwindSafe for PcaPayload
impl Send for PcaPayload
impl Sync for PcaPayload
impl Unpin for PcaPayload
impl UnwindSafe for PcaPayload
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