pub trait CommonOps {
// Required method
fn common(&self) -> &Common;
// Provided methods
fn kind(&self) -> &str { ... }
fn from(&self) -> &PublicId { ... }
fn date(&self) -> &DateTime<FixedOffset> { ... }
fn date_utc(&self) -> DateTime<Utc> { ... }
fn author_id(&self) -> &Id { ... }
fn author_public_id(&self) -> &PublicId { ... }
fn ensure_kind_is(&self, kind: &str) -> ValidationResult<()> { ... }
}Expand description
Common operations on types containing Common
Required Methods§
Provided Methods§
Sourcefn 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
Sourcefn ensure_kind_is(&self, kind: &str) -> ValidationResult<()>
fn ensure_kind_is(&self, kind: &str) -> ValidationResult<()>
Easy check of kind()