pub struct PostGetCompressedAccountBalanceBodyParams {
pub address: Option<SerializablePubkey>,
pub hash: Option<Hash>,
}Expand description
Request for compressed account data
JSON schema
{
"description": "Request for compressed account data",
"default": {
"address": null,
"hash": "11111111111111111111111111111111"
},
"examples": [
{
"address": null,
"hash": "11111111111111111111111111111111"
}
],
"type": "object",
"properties": {
"address": {
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/SerializablePubkey"
}
]
}
]
},
"hash": {
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/Hash"
}
]
}
]
}
},
"additionalProperties": false
}Fields§
§address: Option<SerializablePubkey>§hash: Option<Hash>Implementations§
Trait Implementations§
Source§impl Clone for PostGetCompressedAccountBalanceBodyParams
impl Clone for PostGetCompressedAccountBalanceBodyParams
Source§fn clone(&self) -> PostGetCompressedAccountBalanceBodyParams
fn clone(&self) -> PostGetCompressedAccountBalanceBodyParams
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<'de> Deserialize<'de> for PostGetCompressedAccountBalanceBodyParams
impl<'de> Deserialize<'de> for PostGetCompressedAccountBalanceBodyParams
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<PostGetCompressedAccountBalanceBodyParams> for PostGetCompressedAccountBalanceBodyParams
impl From<PostGetCompressedAccountBalanceBodyParams> for PostGetCompressedAccountBalanceBodyParams
Source§fn from(value: PostGetCompressedAccountBalanceBodyParams) -> Self
fn from(value: PostGetCompressedAccountBalanceBodyParams) -> Self
Converts to this type from the input type.
Source§impl TryFrom<PostGetCompressedAccountBalanceBodyParams> for PostGetCompressedAccountBalanceBodyParams
impl TryFrom<PostGetCompressedAccountBalanceBodyParams> for PostGetCompressedAccountBalanceBodyParams
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: PostGetCompressedAccountBalanceBodyParams,
) -> Result<Self, ConversionError>
fn try_from( value: PostGetCompressedAccountBalanceBodyParams, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PostGetCompressedAccountBalanceBodyParams
impl RefUnwindSafe for PostGetCompressedAccountBalanceBodyParams
impl Send for PostGetCompressedAccountBalanceBodyParams
impl Sync for PostGetCompressedAccountBalanceBodyParams
impl Unpin for PostGetCompressedAccountBalanceBodyParams
impl UnsafeUnpin for PostGetCompressedAccountBalanceBodyParams
impl UnwindSafe for PostGetCompressedAccountBalanceBodyParams
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