pub struct ReviewSignature {
pub actor: Principal,
pub kind: ReviewKind,
pub scope: ReviewScope,
pub justification: Option<String>,
pub signed_at: i64,
pub algorithm: String,
pub public_key: String,
pub signature: String,
}Fields§
§actor: Principal§kind: ReviewKind§scope: ReviewScope§justification: Option<String>Reserved for future review kinds (e.g. send-it / fast-track) that need
a written rationale. Read/preview/co-review leave this None.
signed_at: i64Unix epoch seconds.
algorithm: String§public_key: String§signature: StringHex-encoded signature bytes — same encoding convention as
StateSignature::signature.
Implementations§
Source§impl ReviewSignature
impl ReviewSignature
pub fn validate(&self) -> Result<(), ReviewSignatureError>
Trait Implementations§
Source§impl Clone for ReviewSignature
impl Clone for ReviewSignature
Source§fn clone(&self) -> ReviewSignature
fn clone(&self) -> ReviewSignature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReviewSignature
impl Debug for ReviewSignature
Source§impl<'de> Deserialize<'de> for ReviewSignature
impl<'de> Deserialize<'de> for ReviewSignature
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
Source§impl PartialEq for ReviewSignature
impl PartialEq for ReviewSignature
Source§fn eq(&self, other: &ReviewSignature) -> bool
fn eq(&self, other: &ReviewSignature) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReviewSignature
impl Serialize for ReviewSignature
impl Eq for ReviewSignature
impl StructuralPartialEq for ReviewSignature
Auto Trait Implementations§
impl Freeze for ReviewSignature
impl RefUnwindSafe for ReviewSignature
impl Send for ReviewSignature
impl Sync for ReviewSignature
impl Unpin for ReviewSignature
impl UnsafeUnpin for ReviewSignature
impl UnwindSafe for ReviewSignature
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