pub struct PostGetMultipleCompressedAccountsBody {
pub id: PostGetMultipleCompressedAccountsBodyId,
pub jsonrpc: PostGetMultipleCompressedAccountsBodyJsonrpc,
pub method: PostGetMultipleCompressedAccountsBodyMethod,
pub params: PostGetMultipleCompressedAccountsBodyParams,
}Expand description
PostGetMultipleCompressedAccountsBody
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": [
"getMultipleCompressedAccounts"
]
},
"params": {
"description": "Request for compressed account data",
"default": {
"addresses": null,
"hashes": [
"11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs",
"1117mWrzzrZr312ebPDHu8tbfMwFNvCvMbr6WepCNG"
]
},
"examples": [
{
"addresses": null,
"hashes": [
"11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs",
"1117mWrzzrZr312ebPDHu8tbfMwFNvCvMbr6WepCNG"
]
}
],
"type": "object",
"properties": {
"addresses": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/SerializablePubkey"
}
},
"hashes": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/Hash"
}
}
},
"additionalProperties": false
}
}
}Fields§
§id: PostGetMultipleCompressedAccountsBodyIdAn ID to identify the request.
jsonrpc: PostGetMultipleCompressedAccountsBodyJsonrpcThe version of the JSON-RPC protocol.
method: PostGetMultipleCompressedAccountsBodyMethodThe name of the method to invoke.
params: PostGetMultipleCompressedAccountsBodyParamsImplementations§
Trait Implementations§
Source§impl Clone for PostGetMultipleCompressedAccountsBody
impl Clone for PostGetMultipleCompressedAccountsBody
Source§fn clone(&self) -> PostGetMultipleCompressedAccountsBody
fn clone(&self) -> PostGetMultipleCompressedAccountsBody
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 PostGetMultipleCompressedAccountsBody
impl<'de> Deserialize<'de> for PostGetMultipleCompressedAccountsBody
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<PostGetMultipleCompressedAccountsBody> for PostGetMultipleCompressedAccountsBody
impl From<PostGetMultipleCompressedAccountsBody> for PostGetMultipleCompressedAccountsBody
Source§fn from(value: PostGetMultipleCompressedAccountsBody) -> Self
fn from(value: PostGetMultipleCompressedAccountsBody) -> Self
Converts to this type from the input type.
Source§impl TryFrom<PostGetMultipleCompressedAccountsBody> for PostGetMultipleCompressedAccountsBody
impl TryFrom<PostGetMultipleCompressedAccountsBody> for PostGetMultipleCompressedAccountsBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: PostGetMultipleCompressedAccountsBody,
) -> Result<Self, ConversionError>
fn try_from( value: PostGetMultipleCompressedAccountsBody, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PostGetMultipleCompressedAccountsBody
impl RefUnwindSafe for PostGetMultipleCompressedAccountsBody
impl Send for PostGetMultipleCompressedAccountsBody
impl Sync for PostGetMultipleCompressedAccountsBody
impl Unpin for PostGetMultipleCompressedAccountsBody
impl UnsafeUnpin for PostGetMultipleCompressedAccountsBody
impl UnwindSafe for PostGetMultipleCompressedAccountsBody
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