pub struct PostGetCompressedAccountBodyParams {
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 PostGetCompressedAccountBodyParams
impl Clone for PostGetCompressedAccountBodyParams
Source§fn clone(&self) -> PostGetCompressedAccountBodyParams
fn clone(&self) -> PostGetCompressedAccountBodyParams
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 PostGetCompressedAccountBodyParams
impl<'de> Deserialize<'de> for PostGetCompressedAccountBodyParams
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<PostGetCompressedAccountBodyParams> for PostGetCompressedAccountBodyParams
impl From<PostGetCompressedAccountBodyParams> for PostGetCompressedAccountBodyParams
Source§fn from(value: PostGetCompressedAccountBodyParams) -> Self
fn from(value: PostGetCompressedAccountBodyParams) -> Self
Converts to this type from the input type.
Source§impl TryFrom<PostGetCompressedAccountBodyParams> for PostGetCompressedAccountBodyParams
impl TryFrom<PostGetCompressedAccountBodyParams> for PostGetCompressedAccountBodyParams
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: PostGetCompressedAccountBodyParams,
) -> Result<Self, ConversionError>
fn try_from( value: PostGetCompressedAccountBodyParams, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PostGetCompressedAccountBodyParams
impl RefUnwindSafe for PostGetCompressedAccountBodyParams
impl Send for PostGetCompressedAccountBodyParams
impl Sync for PostGetCompressedAccountBodyParams
impl Unpin for PostGetCompressedAccountBodyParams
impl UnsafeUnpin for PostGetCompressedAccountBodyParams
impl UnwindSafe for PostGetCompressedAccountBodyParams
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