Enum solana_client::rpc_config::RpcEncodingConfigWrapper [−][src]
pub enum RpcEncodingConfigWrapper<T> { Deprecated(Option<UiTransactionEncoding>), Current(Option<T>), }
Variants
Deprecated(Option<UiTransactionEncoding>)
Current(Option<T>)
Implementations
impl<T: EncodingConfig + Default + Copy> RpcEncodingConfigWrapper<T>
[src]
impl<T: EncodingConfig + Default + Copy> RpcEncodingConfigWrapper<T>
[src]pub fn convert_to_current(&self) -> T
[src]
pub fn convert<U: EncodingConfig + From<T>>(
&self
) -> RpcEncodingConfigWrapper<U>
[src]
&self
) -> RpcEncodingConfigWrapper<U>
Trait Implementations
impl<T: Clone> Clone for RpcEncodingConfigWrapper<T>
[src]
impl<T: Clone> Clone for RpcEncodingConfigWrapper<T>
[src]fn clone(&self) -> RpcEncodingConfigWrapper<T>
[src]
fn clone(&self) -> RpcEncodingConfigWrapper<T>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for RpcEncodingConfigWrapper<T>
[src]
impl<T: Debug> Debug for RpcEncodingConfigWrapper<T>
[src]impl<'de, T> Deserialize<'de> for RpcEncodingConfigWrapper<T> where
T: Deserialize<'de>,
[src]
impl<'de, T> Deserialize<'de> for RpcEncodingConfigWrapper<T> where
T: Deserialize<'de>,
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl From<RpcBlockConfig> for RpcEncodingConfigWrapper<RpcBlockConfig>
[src]
impl From<RpcBlockConfig> for RpcEncodingConfigWrapper<RpcBlockConfig>
[src]fn from(config: RpcBlockConfig) -> Self
[src]
fn from(config: RpcBlockConfig) -> Self
[src]Performs the conversion.
impl From<RpcConfirmedBlockConfig> for RpcEncodingConfigWrapper<RpcConfirmedBlockConfig>
[src]
impl From<RpcConfirmedBlockConfig> for RpcEncodingConfigWrapper<RpcConfirmedBlockConfig>
[src]fn from(config: RpcConfirmedBlockConfig) -> Self
[src]
fn from(config: RpcConfirmedBlockConfig) -> Self
[src]Performs the conversion.
impl<T: PartialEq> PartialEq<RpcEncodingConfigWrapper<T>> for RpcEncodingConfigWrapper<T>
[src]
impl<T: PartialEq> PartialEq<RpcEncodingConfigWrapper<T>> for RpcEncodingConfigWrapper<T>
[src]fn eq(&self, other: &RpcEncodingConfigWrapper<T>) -> bool
[src]
fn eq(&self, other: &RpcEncodingConfigWrapper<T>) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &RpcEncodingConfigWrapper<T>) -> bool
[src]
fn ne(&self, other: &RpcEncodingConfigWrapper<T>) -> bool
[src]This method tests for !=
.
impl<T> Serialize for RpcEncodingConfigWrapper<T> where
T: Serialize,
[src]
impl<T> Serialize for RpcEncodingConfigWrapper<T> where
T: Serialize,
[src]impl<T> StructuralPartialEq for RpcEncodingConfigWrapper<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for RpcEncodingConfigWrapper<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for RpcEncodingConfigWrapper<T> where
T: Send,
T: Send,
impl<T> Sync for RpcEncodingConfigWrapper<T> where
T: Sync,
T: Sync,
impl<T> Unpin for RpcEncodingConfigWrapper<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for RpcEncodingConfigWrapper<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,