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: i64
A version, to allow future backward-incompatible extensions and changes.
date: DateTime<FixedOffset>
Timestamp of proof creation
from: PublicId
Author 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 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