pub struct Key {
key_command: KeyCommand,
}
Fields§
§key_command: KeyCommand
Implementations§
source§impl Key
impl Key
pub fn new(key_command: KeyCommand) -> Self
pub fn generate_default(self) -> String
pub fn generate<S: Into<String>>(self, key_type: S) -> String
pub fn generate_expect_fail<S: Into<String>>( self, key_type: S, expected_msg_path: &str )
pub fn generate_with_seed<S: Into<String>>(self, key_type: S, seed: S) -> String
pub fn generate_with_seed_expect_fail<S: Into<String>>( self, key_type: S, seed: S, expected_msg_path: &str )
pub fn convert_to_public_string<S: Into<String>>(self, private_key: S) -> String
pub fn convert_to_public_string_expect_fail<S: Into<String>>( self, private_key: S, expected_msg_path: &str )
pub fn dump_bytes_to_file<S: Into<String>, P: AsRef<Path>>( self, private_key: S, output: P )
pub fn convert_to_bytes_file<P: AsRef<Path>, Q: AsRef<Path>>( self, input: P, output: Q )
pub fn convert_to_bytes_file_expect_fail<P: AsRef<Path>, Q: AsRef<Path>>( self, input: P, output: Q, expected_msg_path: &str )
pub fn convert_from_bytes_string<P: AsRef<Path>, S: Into<String>>( self, key_type: S, input: P ) -> String
pub fn convert_from_bytes_string_expect_fail<P: AsRef<Path>, S: Into<String>>( self, key_type: S, input: P, expected_msg_path: &str )
Auto Trait Implementations§
impl !RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl !UnwindSafe for Key
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