pub struct Code {
pub common: Common,
pub package: PackageInfo,
pub review: Review,
pub comment: String,
pub files: Vec<File>,
}
Expand description
Body of a Code Review Proof
Fields§
§common: Common
§package: PackageInfo
§review: Review
§comment: String
§files: Vec<File>
Implementations§
Trait Implementations§
source§impl CommonOps for Code
impl CommonOps for Code
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 Code
impl Content for Code
fn validate_data(&self) -> ValidationResult<()>
fn serialize_to(&self, fmt: &mut dyn Write) -> Result
source§impl ContentWithDraft for Code
impl ContentWithDraft for Code
source§impl<'de> Deserialize<'de> for Code
impl<'de> Deserialize<'de> for Code
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 Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnwindSafe for Code
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