#[repr(i32)]pub enum WithdrawDestinationValidationCode {
RESULT_UNSPECIFIED = 0,
VALID = 1,
INVALID_ADDRESS = 2,
UNSUPPORTED_CHAIN = 3,
POLYESTER_SMART_ACCOUNT = 4,
TOKEN_CONTRACT = 5,
DENYLISTED_ADDRESS = 6,
}Expand description
WithdrawDestinationValidationCode identifies the public outcome of an external-chain destination validation.
Variants§
RESULT_UNSPECIFIED = 0
No validation outcome was produced.
VALID = 1
The destination is valid and may be used for a withdraw.
INVALID_ADDRESS = 2
The address is not valid for the selected destination chain.
UNSUPPORTED_CHAIN = 3
The selected destination chain is not supported for withdraws.
POLYESTER_SMART_ACCOUNT = 4
The destination is a Polyester smart account and cannot be used for an external-chain withdraw.
TOKEN_CONTRACT = 5
The destination is a token contract and cannot receive withdrawals.
DENYLISTED_ADDRESS = 6
The destination is blocked by Polyester’s user-safety denylist.
Implementations§
Source§impl WithdrawDestinationValidationCode
impl WithdrawDestinationValidationCode
Sourcepub const ResultUnspecified: Self = Self::RESULT_UNSPECIFIED
pub const ResultUnspecified: Self = Self::RESULT_UNSPECIFIED
Idiomatic alias for Self::RESULT_UNSPECIFIED; Debug prints the variant name.
Sourcepub const Valid: Self = Self::VALID
pub const Valid: Self = Self::VALID
Idiomatic alias for Self::VALID; Debug prints the variant name.
Sourcepub const InvalidAddress: Self = Self::INVALID_ADDRESS
pub const InvalidAddress: Self = Self::INVALID_ADDRESS
Idiomatic alias for Self::INVALID_ADDRESS; Debug prints the variant name.
Sourcepub const UnsupportedChain: Self = Self::UNSUPPORTED_CHAIN
pub const UnsupportedChain: Self = Self::UNSUPPORTED_CHAIN
Idiomatic alias for Self::UNSUPPORTED_CHAIN; Debug prints the variant name.
Sourcepub const PolyesterSmartAccount: Self = Self::POLYESTER_SMART_ACCOUNT
pub const PolyesterSmartAccount: Self = Self::POLYESTER_SMART_ACCOUNT
Idiomatic alias for Self::POLYESTER_SMART_ACCOUNT; Debug prints the variant name.
Sourcepub const TokenContract: Self = Self::TOKEN_CONTRACT
pub const TokenContract: Self = Self::TOKEN_CONTRACT
Idiomatic alias for Self::TOKEN_CONTRACT; Debug prints the variant name.
Sourcepub const DenylistedAddress: Self = Self::DENYLISTED_ADDRESS
pub const DenylistedAddress: Self = Self::DENYLISTED_ADDRESS
Idiomatic alias for Self::DENYLISTED_ADDRESS; Debug prints the variant name.
Trait Implementations§
Source§impl Clone for WithdrawDestinationValidationCode
impl Clone for WithdrawDestinationValidationCode
Source§fn clone(&self) -> WithdrawDestinationValidationCode
fn clone(&self) -> WithdrawDestinationValidationCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WithdrawDestinationValidationCode
Source§impl<'de> Deserialize<'de> for WithdrawDestinationValidationCode
impl<'de> Deserialize<'de> for WithdrawDestinationValidationCode
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Source§impl Enumeration for WithdrawDestinationValidationCode
impl Enumeration for WithdrawDestinationValidationCode
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
.proto file.impl Eq for WithdrawDestinationValidationCode
Source§impl ProtoElemJson for WithdrawDestinationValidationCode
impl ProtoElemJson for WithdrawDestinationValidationCode
Source§fn serialize_proto_json<S: Serializer>(
v: &Self,
s: S,
) -> Result<S::Ok, S::Error>
fn serialize_proto_json<S: Serializer>( v: &Self, s: S, ) -> Result<S::Ok, S::Error>
Source§fn deserialize_proto_json<'de, D: Deserializer<'de>>(
d: D,
) -> Result<Self, D::Error>
fn deserialize_proto_json<'de, D: Deserializer<'de>>( d: D, ) -> Result<Self, D::Error>
impl StructuralPartialEq for WithdrawDestinationValidationCode
Auto Trait Implementations§
impl Freeze for WithdrawDestinationValidationCode
impl RefUnwindSafe for WithdrawDestinationValidationCode
impl Send for WithdrawDestinationValidationCode
impl Sync for WithdrawDestinationValidationCode
impl Unpin for WithdrawDestinationValidationCode
impl UnsafeUnpin for WithdrawDestinationValidationCode
impl UnwindSafe for WithdrawDestinationValidationCode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.