Struct bdk::keys::PrivateKeyGenerateOptions
source · [−]pub struct PrivateKeyGenerateOptions {
pub compressed: bool,
}
Expand description
Options for generating a PrivateKey
Defaults to creating compressed keys, which save on-chain bytes and fees
Fields
compressed: bool
Whether the generated key should be “compressed” or not
Trait Implementations
sourceimpl Clone for PrivateKeyGenerateOptions
impl Clone for PrivateKeyGenerateOptions
sourcefn clone(&self) -> PrivateKeyGenerateOptions
fn clone(&self) -> PrivateKeyGenerateOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PrivateKeyGenerateOptions
impl Debug for PrivateKeyGenerateOptions
sourceimpl Default for PrivateKeyGenerateOptions
impl Default for PrivateKeyGenerateOptions
impl Copy for PrivateKeyGenerateOptions
Auto Trait Implementations
impl RefUnwindSafe for PrivateKeyGenerateOptions
impl Send for PrivateKeyGenerateOptions
impl Sync for PrivateKeyGenerateOptions
impl Unpin for PrivateKeyGenerateOptions
impl UnwindSafe for PrivateKeyGenerateOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more