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