pub struct ThresholdApprovalProposal {
pub body: ThresholdApprovalProposalBody,
pub algorithm: Option<SigningAlgorithm>,
pub signature: Signature,
}Expand description
Signed threshold proposal issued by the active policy authority.
Fields§
§body: ThresholdApprovalProposalBody§algorithm: Option<SigningAlgorithm>§signature: SignatureImplementations§
Source§impl ThresholdApprovalProposal
impl ThresholdApprovalProposal
pub fn sign( body: ThresholdApprovalProposalBody, keypair: &Keypair, ) -> Result<ThresholdApprovalProposal, Error>
pub fn sign_with_backend( body: ThresholdApprovalProposalBody, backend: &dyn SigningBackend, ) -> Result<ThresholdApprovalProposal, Error>
pub fn verify_signature(&self) -> Result<bool, Error>
pub fn validate_at(&self, now: u64) -> Result<(), Error>
pub fn artifact_digest(&self) -> Result<String, Error>
Trait Implementations§
Source§impl Clone for ThresholdApprovalProposal
impl Clone for ThresholdApprovalProposal
Source§fn clone(&self) -> ThresholdApprovalProposal
fn clone(&self) -> ThresholdApprovalProposal
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 ThresholdApprovalProposal
impl Debug for ThresholdApprovalProposal
Source§impl<'de> Deserialize<'de> for ThresholdApprovalProposal
impl<'de> Deserialize<'de> for ThresholdApprovalProposal
Source§fn deserialize<D>(
deserializer: D,
) -> Result<ThresholdApprovalProposal, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ThresholdApprovalProposal, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ThresholdApprovalProposal
Source§impl Serialize for ThresholdApprovalProposal
impl Serialize for ThresholdApprovalProposal
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ThresholdApprovalProposal
Auto Trait Implementations§
impl Freeze for ThresholdApprovalProposal
impl RefUnwindSafe for ThresholdApprovalProposal
impl Send for ThresholdApprovalProposal
impl Sync for ThresholdApprovalProposal
impl Unpin for ThresholdApprovalProposal
impl UnsafeUnpin for ThresholdApprovalProposal
impl UnwindSafe for ThresholdApprovalProposal
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