pub struct PostGetCompressedAccountV2Body {
pub id: PostGetCompressedAccountV2BodyId,
pub jsonrpc: PostGetCompressedAccountV2BodyJsonrpc,
pub method: PostGetCompressedAccountV2BodyMethod,
pub params: PostGetCompressedAccountV2BodyParams,
}Expand description
PostGetCompressedAccountV2Body
JSON schema
{
"type": "object",
"required": [
"id",
"jsonrpc",
"method",
"params"
],
"properties": {
"id": {
"description": "An ID to identify the request.",
"type": "string",
"enum": [
"test-account"
]
},
"jsonrpc": {
"description": "The version of the JSON-RPC protocol.",
"type": "string",
"enum": [
"2.0"
]
},
"method": {
"description": "The name of the method to invoke.",
"type": "string",
"enum": [
"getCompressedAccountV2"
]
},
"params": {
"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§
§id: PostGetCompressedAccountV2BodyIdAn ID to identify the request.
jsonrpc: PostGetCompressedAccountV2BodyJsonrpcThe version of the JSON-RPC protocol.
method: PostGetCompressedAccountV2BodyMethodThe name of the method to invoke.
params: PostGetCompressedAccountV2BodyParamsImplementations§
Trait Implementations§
Source§impl Clone for PostGetCompressedAccountV2Body
impl Clone for PostGetCompressedAccountV2Body
Source§fn clone(&self) -> PostGetCompressedAccountV2Body
fn clone(&self) -> PostGetCompressedAccountV2Body
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 PostGetCompressedAccountV2Body
impl<'de> Deserialize<'de> for PostGetCompressedAccountV2Body
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<PostGetCompressedAccountV2Body> for PostGetCompressedAccountV2Body
impl From<PostGetCompressedAccountV2Body> for PostGetCompressedAccountV2Body
Source§fn from(value: PostGetCompressedAccountV2Body) -> Self
fn from(value: PostGetCompressedAccountV2Body) -> Self
Converts to this type from the input type.
Source§impl TryFrom<PostGetCompressedAccountV2Body> for PostGetCompressedAccountV2Body
impl TryFrom<PostGetCompressedAccountV2Body> for PostGetCompressedAccountV2Body
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: PostGetCompressedAccountV2Body,
) -> Result<Self, ConversionError>
fn try_from( value: PostGetCompressedAccountV2Body, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PostGetCompressedAccountV2Body
impl RefUnwindSafe for PostGetCompressedAccountV2Body
impl Send for PostGetCompressedAccountV2Body
impl Sync for PostGetCompressedAccountV2Body
impl Unpin for PostGetCompressedAccountV2Body
impl UnsafeUnpin for PostGetCompressedAccountV2Body
impl UnwindSafe for PostGetCompressedAccountV2Body
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