pub struct Common {
pub kind: Option<String>,
pub version: i64,
pub date: DateTime<FixedOffset>,
pub from: PublicId,
pub original: Option<OriginalReference>,
}Expand description
A Common part of every Content format
Fields§
§kind: Option<String>Type of this review/trust/whatever file
version: i64A version, to allow future backward-incompatible extensions and changes.
date: DateTime<FixedOffset>Timestamp of proof creation
from: PublicIdAuthor of the proof
original: Option<OriginalReference>Reference to original proof when reissuing
Trait Implementations§
Source§impl CommonOps for Common
impl CommonOps for Common
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<'de> Deserialize<'de> for Common
impl<'de> Deserialize<'de> for Common
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 Common
impl RefUnwindSafe for Common
impl Send for Common
impl Sync for Common
impl Unpin for Common
impl UnsafeUnpin for Common
impl UnwindSafe for Common
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