pub enum TxVer {
V1,
V2,
}
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for TxVer
impl<'de> Deserialize<'de> for TxVer
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<TxVer, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<TxVer, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<TxVer> for TxVer
impl PartialEq<TxVer> for TxVer
source§impl Serialize for TxVer
impl Serialize for TxVer
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
source§impl StrictDecode for TxVer
impl StrictDecode for TxVer
fn strict_decode(reader: &mut impl TypedRead) -> Result<TxVer, DecodeError>
source§impl StrictDumb for TxVer
impl StrictDumb for TxVer
fn strict_dumb() -> TxVer
source§impl StrictEncode for TxVer
impl StrictEncode for TxVer
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where W: TypedWrite,
source§impl StrictEnum for TxVer
impl StrictEnum for TxVer
fn from_variant_name(name: &FieldName) -> Result<Self, VariantError<&FieldName>>
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictSum for TxVer
impl StrictSum for TxVer
const ALL_VARIANTS: &'static [(u8, &'static str)] = &[(Self::V1 as u8, "v1"), (Self::V2 as u8, "v2")]
fn variant_name(&self) -> &'static str
fn strict_check_variants()
fn variant_name_by_tag(tag: u8) -> Option<FieldName>
fn variant_ord(&self) -> u8
source§impl StrictType for TxVer
impl StrictType for TxVer
const STRICT_LIB_NAME: &'static str = LIB_NAME_BITCOIN
fn strict_name() -> Option<TypeName>
impl Copy for TxVer
impl Eq for TxVer
impl StructuralEq for TxVer
impl StructuralPartialEq for TxVer
Auto Trait Implementations§
impl RefUnwindSafe for TxVer
impl Send for TxVer
impl Sync for TxVer
impl Unpin for TxVer
impl UnwindSafe for TxVer
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.