pub enum RawSignParams {
Variant0 {
hash: String,
},
Variant1 {
bytes: String,
encoding: RawSignParamsVariant1Encoding,
},
}Expand description
RawSignParams
JSON schema
{
"oneOf": [
{
"description": "Sign a pre-computed hash",
"type": "object",
"required": [
"hash"
],
"properties": {
"hash": {
"description": "The hash to sign. Must start with `0x`.",
"type": "string"
}
}
},
{
"description": "Hash and sign bytes (Tron only)",
"type": "object",
"required": [
"bytes",
"encoding"
],
"properties": {
"bytes": {
"description": "The bytes to hash and sign.",
"type": "string"
},
"encoding": {
"description": "Encoding scheme. Currently only utf-8 is
supported.",
"type": "string",
"enum": [
"utf-8"
]
}
}
}
]
}Variants§
Variant0
Variant1
Fields
§
encoding: RawSignParamsVariant1EncodingEncoding scheme. Currently only utf-8 is supported.
Trait Implementations§
Source§impl Clone for RawSignParams
impl Clone for RawSignParams
Source§fn clone(&self) -> RawSignParams
fn clone(&self) -> RawSignParams
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 RawSignParams
impl Debug for RawSignParams
Source§impl<'de> Deserialize<'de> for RawSignParams
impl<'de> Deserialize<'de> for RawSignParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RawSignParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RawSignParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&RawSignParams> for RawSignParams
impl From<&RawSignParams> for RawSignParams
Source§fn from(value: &RawSignParams) -> RawSignParams
fn from(value: &RawSignParams) -> RawSignParams
Converts to this type from the input type.
Source§impl Serialize for RawSignParams
impl Serialize for RawSignParams
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
Auto Trait Implementations§
impl Freeze for RawSignParams
impl RefUnwindSafe for RawSignParams
impl Send for RawSignParams
impl Sync for RawSignParams
impl Unpin for RawSignParams
impl UnwindSafe for RawSignParams
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