pub struct BytesValueNode {
pub data: String,
pub encoding: BytesEncoding,
}
Fields§
§data: String
§encoding: BytesEncoding
Implementations§
Source§impl BytesValueNode
impl BytesValueNode
pub fn new<T>(encoding: BytesEncoding, data: T) -> BytesValueNode
pub fn base16<T>(data: T) -> BytesValueNode
pub fn base58<T>(data: T) -> BytesValueNode
pub fn base64<T>(data: T) -> BytesValueNode
pub fn utf8<T>(data: T) -> BytesValueNode
Trait Implementations§
Source§impl Clone for BytesValueNode
impl Clone for BytesValueNode
Source§fn clone(&self) -> BytesValueNode
fn clone(&self) -> BytesValueNode
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 BytesValueNode
impl Debug for BytesValueNode
Source§impl<'de> Deserialize<'de> for BytesValueNode
impl<'de> Deserialize<'de> for BytesValueNode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BytesValueNode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BytesValueNode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<BytesValueNode> for InstructionInputValueNode
impl From<BytesValueNode> for InstructionInputValueNode
Source§fn from(value: BytesValueNode) -> InstructionInputValueNode
fn from(value: BytesValueNode) -> InstructionInputValueNode
Converts to this type from the input type.
Source§impl From<BytesValueNode> for Node
impl From<BytesValueNode> for Node
Source§fn from(val: BytesValueNode) -> Node
fn from(val: BytesValueNode) -> Node
Converts to this type from the input type.
Source§impl From<BytesValueNode> for PdaSeedValueValueNode
impl From<BytesValueNode> for PdaSeedValueValueNode
Source§fn from(value: BytesValueNode) -> PdaSeedValueValueNode
fn from(value: BytesValueNode) -> PdaSeedValueValueNode
Converts to this type from the input type.
Source§impl From<BytesValueNode> for RegisteredValueNode
impl From<BytesValueNode> for RegisteredValueNode
Source§fn from(value: BytesValueNode) -> RegisteredValueNode
fn from(value: BytesValueNode) -> RegisteredValueNode
Converts to this type from the input type.
Source§impl From<BytesValueNode> for ValueNode
impl From<BytesValueNode> for ValueNode
Source§fn from(value: BytesValueNode) -> ValueNode
fn from(value: BytesValueNode) -> ValueNode
Converts to this type from the input type.
Source§impl NodeTrait for BytesValueNode
impl NodeTrait for BytesValueNode
Source§impl PartialEq for BytesValueNode
impl PartialEq for BytesValueNode
Source§impl Serialize for BytesValueNode
impl Serialize for BytesValueNode
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
impl StructuralPartialEq for BytesValueNode
Auto Trait Implementations§
impl Freeze for BytesValueNode
impl RefUnwindSafe for BytesValueNode
impl Send for BytesValueNode
impl Sync for BytesValueNode
impl Unpin for BytesValueNode
impl UnwindSafe for BytesValueNode
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