pub struct AgentMailEvidenceRef {
pub kind: AgentMailEvidenceKind,
pub reference_id: String,
pub label: Option<String>,
}Expand description
Bounded pointer to evidence already authorized by the destination runtime.
reference_id is deliberately opaque: paths and URLs are not valid evidence
references and must not be smuggled through this contract.
Fields§
§kind: AgentMailEvidenceKind§reference_id: String§label: Option<String>Implementations§
Source§impl AgentMailEvidenceRef
impl AgentMailEvidenceRef
pub fn validate(&self) -> Result<(), AgentMailValidationError>
Trait Implementations§
Source§impl Clone for AgentMailEvidenceRef
impl Clone for AgentMailEvidenceRef
Source§fn clone(&self) -> AgentMailEvidenceRef
fn clone(&self) -> AgentMailEvidenceRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AgentMailEvidenceRef
impl Debug for AgentMailEvidenceRef
Source§impl<'de> Deserialize<'de> for AgentMailEvidenceRef
impl<'de> Deserialize<'de> for AgentMailEvidenceRef
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 AgentMailEvidenceRef
Source§impl PartialEq for AgentMailEvidenceRef
impl PartialEq for AgentMailEvidenceRef
Source§impl Serialize for AgentMailEvidenceRef
impl Serialize for AgentMailEvidenceRef
impl StructuralPartialEq for AgentMailEvidenceRef
Auto Trait Implementations§
impl Freeze for AgentMailEvidenceRef
impl RefUnwindSafe for AgentMailEvidenceRef
impl Send for AgentMailEvidenceRef
impl Sync for AgentMailEvidenceRef
impl Unpin for AgentMailEvidenceRef
impl UnsafeUnpin for AgentMailEvidenceRef
impl UnwindSafe for AgentMailEvidenceRef
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