pub struct Trust {
pub common: Common,
pub ids: Vec<PublicId>,
pub trust: TrustLevel,
pub comment: String,
pub override_: Vec<OverrideItem>,
}
Expand description
Body of a Trust Proof
Fields§
§common: Common
§ids: Vec<PublicId>
§trust: TrustLevel
§comment: String
§override_: Vec<OverrideItem>
Implementations§
Trait Implementations§
source§impl CommonOps for Trust
impl CommonOps for Trust
fn common(&self) -> &Common
source§fn date(&self) -> &DateTime<FixedOffset>
fn date(&self) -> &DateTime<FixedOffset>
When it has been written according to its creator
ID of the person who signed it
Displayable version of ID of the person who signed it
source§fn ensure_kind_is(&self, kind: &str) -> ValidationResult<()>
fn ensure_kind_is(&self, kind: &str) -> ValidationResult<()>
Easy check of
kind()
source§impl Content for Trust
impl Content for Trust
fn serialize_to(&self, fmt: &mut dyn Write) -> Result
fn validate_data(&self) -> ValidationResult<()>
source§impl ContentWithDraft for Trust
impl ContentWithDraft for Trust
source§impl<'de> Deserialize<'de> for Trust
impl<'de> Deserialize<'de> for Trust
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
Auto Trait Implementations§
impl Freeze for Trust
impl RefUnwindSafe for Trust
impl Send for Trust
impl Sync for Trust
impl Unpin for Trust
impl UnwindSafe for Trust
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