pub struct RawSignBytesParams {
pub bytes: RawSignBytesParamsBytes,
pub encoding: RawSignBytesEncoding,
pub hash_function: RawSignBytesHashFunction,
}Expand description
Parameters for hashing and signing bytes with the raw_sign RPC.
JSON schema
{
"title": "RawSignBytesParams",
"description": "Parameters for hashing and signing bytes with the
`raw_sign` RPC.",
"type": "object",
"required": [
"bytes",
"encoding",
"hash_function"
],
"properties": {
"bytes": {
"description": "The bytes to hash and sign.",
"type": "string",
"maxLength": 100002
},
"encoding": {
"allOf": [
{
"$ref": "#/components/schemas/RawSignBytesEncoding"
},
{
"description": "Encoding scheme for the bytes."
}
]
},
"hash_function": {
"allOf": [
{
"$ref": "#/components/schemas/RawSignBytesHashFunction"
},
{
"description": "Hash function to use for the bytes."
}
]
}
},
"x-stainless-model": "wallets.raw_sign_bytes_params"
}Fields§
§bytes: RawSignBytesParamsBytesThe bytes to hash and sign.
encoding: RawSignBytesEncoding§hash_function: RawSignBytesHashFunctionTrait Implementations§
Source§impl Clone for RawSignBytesParams
impl Clone for RawSignBytesParams
Source§fn clone(&self) -> RawSignBytesParams
fn clone(&self) -> RawSignBytesParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RawSignBytesParams
impl Debug for RawSignBytesParams
Source§impl<'de> Deserialize<'de> for RawSignBytesParams
impl<'de> Deserialize<'de> for RawSignBytesParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&RawSignBytesParams> for RawSignBytesParams
impl From<&RawSignBytesParams> for RawSignBytesParams
Source§fn from(value: &RawSignBytesParams) -> Self
fn from(value: &RawSignBytesParams) -> Self
Converts to this type from the input type.
Source§impl From<RawSignBytesParams> for RawSignInputParams
impl From<RawSignBytesParams> for RawSignInputParams
Source§fn from(value: RawSignBytesParams) -> Self
fn from(value: RawSignBytesParams) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RawSignBytesParams
impl RefUnwindSafe for RawSignBytesParams
impl Send for RawSignBytesParams
impl Sync for RawSignBytesParams
impl Unpin for RawSignBytesParams
impl UnsafeUnpin for RawSignBytesParams
impl UnwindSafe for RawSignBytesParams
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