pub struct TrustedContent {
pub trust: Trust,
pub source: String,
pub text: String,
}Expand description
A span of content carrying its trust tag and origin.
Fields§
§trust: Trust§source: String§text: StringImplementations§
Trait Implementations§
Source§impl Clone for TrustedContent
impl Clone for TrustedContent
Source§fn clone(&self) -> TrustedContent
fn clone(&self) -> TrustedContent
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 TrustedContent
impl Debug for TrustedContent
Source§impl<'de> Deserialize<'de> for TrustedContent
impl<'de> Deserialize<'de> for TrustedContent
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 TrustedContent
Source§impl PartialEq for TrustedContent
impl PartialEq for TrustedContent
Source§fn eq(&self, other: &TrustedContent) -> bool
fn eq(&self, other: &TrustedContent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TrustedContent
impl Serialize for TrustedContent
impl StructuralPartialEq for TrustedContent
Auto Trait Implementations§
impl Freeze for TrustedContent
impl RefUnwindSafe for TrustedContent
impl Send for TrustedContent
impl Sync for TrustedContent
impl Unpin for TrustedContent
impl UnsafeUnpin for TrustedContent
impl UnwindSafe for TrustedContent
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