Struct jormungandr_automation::jcli::api::certificate::Certificate
source · pub struct Certificate {
command: CertificateCommand,
}
Fields§
§command: CertificateCommand
Implementations§
source§impl Certificate
impl Certificate
pub fn new(command: CertificateCommand) -> Self
pub fn new_vote_plan<P: AsRef<Path>>(self, proposal_file: P) -> String
pub fn new_public_vote_tally<S: Into<String>>(self, vote_plan_id: S) -> String
pub fn new_private_vote_tally<P: AsRef<Path>, S: Into<String>, Q: AsRef<Path>>( self, vote_plan: P, vote_plan_id: S, shares: Q ) -> String
pub fn new_public_vote_cast<S: Into<String>>( self, vote_plan_id: S, proposal_idx: usize, choice: Choice ) -> String
pub fn new_private_vote_cast<S: Into<String>, P: Into<String>>( self, vote_plan_id: S, proposal_idx: usize, choice: Choice, option_size: usize, election_key: P ) -> String
pub fn new_stake_delegation<S: Into<String>, P: Into<String>>( self, stake_pool_id: S, delegation_id: P ) -> String
pub fn new_stake_pool_registration( self, kes_key: &str, vrf_key: &str, start_validity: u32, management_threshold: u32, owner_pk: &str, tax_type: Option<TaxType> ) -> String
pub fn new_update_proposal<P: AsRef<Path>>( self, proposer_id: &str, config: P ) -> String
pub fn new_update_vote(self, proposal_id: &str, voter_id: &str) -> String
pub fn stake_pool_id<P: AsRef<Path>>( self, input_file: P ) -> Result<String, Error>
pub fn vote_plan_id<S: Into<String>>(self, cert: S) -> Result<String, Error>
pub fn sign<P: AsRef<Path>, Q: AsRef<Path>, R: AsRef<Path>>( self, signing_key: P, input_file: Q, output_file: R ) -> String
pub fn new_stake_pool_retirement(self, stake_pool_id: &str) -> String
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Certificate
impl Send for Certificate
impl Sync for Certificate
impl Unpin for Certificate
impl !UnwindSafe for Certificate
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request