pub enum ReplacementType {
Identifier,
BinaryBytes,
TextBase58,
TextBase64,
}Variants§
Implementations§
Source§impl ReplacementType
impl ReplacementType
pub fn replace_for_bytes(&self, bytes: Vec<u8>) -> Result<Value, Error>
pub fn replace_for_bytes_20(&self, bytes: [u8; 20]) -> Result<Value, Error>
pub fn replace_for_bytes_32(&self, bytes: [u8; 32]) -> Result<Value, Error>
pub fn replace_for_bytes_36(&self, bytes: [u8; 36]) -> Result<Value, Error>
pub fn replace_consume_value(&self, value: Value) -> Result<Value, Error>
pub fn replace_value_in_place(&self, value: &mut Value) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for ReplacementType
impl Clone for ReplacementType
Source§fn clone(&self) -> ReplacementType
fn clone(&self) -> ReplacementType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReplacementType
impl Debug for ReplacementType
impl Copy for ReplacementType
Auto Trait Implementations§
impl Freeze for ReplacementType
impl RefUnwindSafe for ReplacementType
impl Send for ReplacementType
impl Sync for ReplacementType
impl Unpin for ReplacementType
impl UnwindSafe for ReplacementType
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, U> IntoPlatformVersioned<U> for Twhere
U: FromPlatformVersioned<T>,
impl<T, U> IntoPlatformVersioned<U> for Twhere
U: FromPlatformVersioned<T>,
§fn into_platform_versioned(self, platform_version: &PlatformVersion) -> U
fn into_platform_versioned(self, platform_version: &PlatformVersion) -> U
Performs the conversion.
§impl<T, U> TryIntoPlatformVersioned<U> for Twhere
U: TryFromPlatformVersioned<T>,
impl<T, U> TryIntoPlatformVersioned<U> for Twhere
U: TryFromPlatformVersioned<T>,
§type Error = <U as TryFromPlatformVersioned<T>>::Error
type Error = <U as TryFromPlatformVersioned<T>>::Error
The type returned in the event of a conversion error.
§fn try_into_platform_versioned(
self,
platform_version: &PlatformVersion,
) -> Result<U, <U as TryFromPlatformVersioned<T>>::Error>
fn try_into_platform_versioned( self, platform_version: &PlatformVersion, ) -> Result<U, <U as TryFromPlatformVersioned<T>>::Error>
Performs the conversion.