pub enum SignBytesMode {
Auto,
V1,
V2,
}Expand description
The caller’s choice of sign-bytes: a fixed version, or Auto (ask the chain).
Variants§
Auto
Resolve per network (see SignBytesResolver::resolve). The default.
V1
Always sign v1. No network call.
V2
Always sign v2. No network call.
Implementations§
Source§impl SignBytesMode
impl SignBytesMode
Sourcepub fn fixed(self) -> Option<SignBytesVersion>
pub fn fixed(self) -> Option<SignBytesVersion>
The fixed version this mode names, or None for Auto.
Trait Implementations§
Source§impl Clone for SignBytesMode
impl Clone for SignBytesMode
Source§fn clone(&self) -> SignBytesMode
fn clone(&self) -> SignBytesMode
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 moreimpl Copy for SignBytesMode
Source§impl Debug for SignBytesMode
impl Debug for SignBytesMode
Source§impl Default for SignBytesMode
impl Default for SignBytesMode
Source§fn default() -> SignBytesMode
fn default() -> SignBytesMode
Returns the “default value” for a type. Read more
Source§impl Display for SignBytesMode
impl Display for SignBytesMode
impl Eq for SignBytesMode
Source§impl From<SignBytesVersion> for SignBytesMode
impl From<SignBytesVersion> for SignBytesMode
Source§fn from(v: SignBytesVersion) -> Self
fn from(v: SignBytesVersion) -> Self
Converts to this type from the input type.
Source§impl FromStr for SignBytesMode
impl FromStr for SignBytesMode
Source§impl Hash for SignBytesMode
impl Hash for SignBytesMode
Source§impl PartialEq for SignBytesMode
impl PartialEq for SignBytesMode
impl StructuralPartialEq for SignBytesMode
Auto Trait Implementations§
impl Freeze for SignBytesMode
impl RefUnwindSafe for SignBytesMode
impl Send for SignBytesMode
impl Sync for SignBytesMode
impl Unpin for SignBytesMode
impl UnsafeUnpin for SignBytesMode
impl UnwindSafe for SignBytesMode
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