pub struct TrustEnvelope {
pub trust: ContentTrust,
pub source: String,
pub instructions_are_data: bool,
pub content_hash: String,
}Fields§
§trust: ContentTrust§source: String§instructions_are_data: bool§content_hash: StringImplementations§
Source§impl TrustEnvelope
impl TrustEnvelope
pub fn trust_label(&self) -> &'static str
pub fn wraps_untrusted_content(&self) -> bool
pub fn boundary_wrapped_content(&self, content: &str) -> String
Trait Implementations§
Source§impl Clone for TrustEnvelope
impl Clone for TrustEnvelope
Source§impl Debug for TrustEnvelope
impl Debug for TrustEnvelope
Source§impl<'de> Deserialize<'de> for TrustEnvelope
impl<'de> Deserialize<'de> for TrustEnvelope
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 TrustEnvelope
Source§impl PartialEq for TrustEnvelope
impl PartialEq for TrustEnvelope
Source§impl Serialize for TrustEnvelope
impl Serialize for TrustEnvelope
impl StructuralPartialEq for TrustEnvelope
Auto Trait Implementations§
impl Freeze for TrustEnvelope
impl RefUnwindSafe for TrustEnvelope
impl Send for TrustEnvelope
impl Sync for TrustEnvelope
impl Unpin for TrustEnvelope
impl UnsafeUnpin for TrustEnvelope
impl UnwindSafe for TrustEnvelope
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