pub struct PostGetCompressedAccountBody {
pub id: PostGetCompressedAccountBodyId,
pub jsonrpc: PostGetCompressedAccountBodyJsonrpc,
pub method: PostGetCompressedAccountBodyMethod,
pub params: PostGetCompressedAccountBodyParams,
}Expand description
PostGetCompressedAccountBody
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": [
"getCompressedAccount"
]
},
"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: PostGetCompressedAccountBodyIdAn ID to identify the request.
jsonrpc: PostGetCompressedAccountBodyJsonrpcThe version of the JSON-RPC protocol.
method: PostGetCompressedAccountBodyMethodThe name of the method to invoke.
params: PostGetCompressedAccountBodyParamsImplementations§
Trait Implementations§
Source§impl Clone for PostGetCompressedAccountBody
impl Clone for PostGetCompressedAccountBody
Source§fn clone(&self) -> PostGetCompressedAccountBody
fn clone(&self) -> PostGetCompressedAccountBody
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 Debug for PostGetCompressedAccountBody
impl Debug for PostGetCompressedAccountBody
Source§impl<'de> Deserialize<'de> for PostGetCompressedAccountBody
impl<'de> Deserialize<'de> for PostGetCompressedAccountBody
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<PostGetCompressedAccountBody> for PostGetCompressedAccountBody
impl From<PostGetCompressedAccountBody> for PostGetCompressedAccountBody
Source§fn from(value: PostGetCompressedAccountBody) -> Self
fn from(value: PostGetCompressedAccountBody) -> Self
Converts to this type from the input type.
Source§impl TryFrom<PostGetCompressedAccountBody> for PostGetCompressedAccountBody
impl TryFrom<PostGetCompressedAccountBody> for PostGetCompressedAccountBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: PostGetCompressedAccountBody,
) -> Result<Self, ConversionError>
fn try_from( value: PostGetCompressedAccountBody, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PostGetCompressedAccountBody
impl RefUnwindSafe for PostGetCompressedAccountBody
impl Send for PostGetCompressedAccountBody
impl Sync for PostGetCompressedAccountBody
impl Unpin for PostGetCompressedAccountBody
impl UnsafeUnpin for PostGetCompressedAccountBody
impl UnwindSafe for PostGetCompressedAccountBody
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