pub struct PostGetTransactionWithCompressionInfoV2Response {
pub error: Option<PostGetTransactionWithCompressionInfoV2ResponseError>,
pub id: PostGetTransactionWithCompressionInfoV2ResponseId,
pub jsonrpc: PostGetTransactionWithCompressionInfoV2ResponseJsonrpc,
pub result: Option<PostGetTransactionWithCompressionInfoV2ResponseResult>,
}Expand description
PostGetTransactionWithCompressionInfoV2Response
JSON schema
{
"type": "object",
"required": [
"id",
"jsonrpc"
],
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "integer"
},
"message": {
"type": "string"
}
}
},
"id": {
"description": "An ID to identify the response.",
"type": "string",
"enum": [
"test-account"
]
},
"jsonrpc": {
"description": "The version of the JSON-RPC protocol.",
"type": "string",
"enum": [
"2.0"
]
},
"result": {
"description": "A Solana transaction with additional compression information",
"type": "object",
"properties": {
"compression_info": {
"type": "object",
"required": [
"closedAccounts",
"openedAccounts"
],
"properties": {
"closedAccounts": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ClosedAccountWithOptionalTokenDataV2"
}
},
"openedAccounts": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountWithOptionalTokenDataV2"
}
}
},
"additionalProperties": false
},
"transaction": {
"description": "An encoded confirmed transaction with status meta",
"type": "object"
}
}
}
}
}Fields§
§error: Option<PostGetTransactionWithCompressionInfoV2ResponseError>§id: PostGetTransactionWithCompressionInfoV2ResponseIdAn ID to identify the response.
jsonrpc: PostGetTransactionWithCompressionInfoV2ResponseJsonrpcThe version of the JSON-RPC protocol.
result: Option<PostGetTransactionWithCompressionInfoV2ResponseResult>Implementations§
Trait Implementations§
Source§impl Clone for PostGetTransactionWithCompressionInfoV2Response
impl Clone for PostGetTransactionWithCompressionInfoV2Response
Source§fn clone(&self) -> PostGetTransactionWithCompressionInfoV2Response
fn clone(&self) -> PostGetTransactionWithCompressionInfoV2Response
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 PostGetTransactionWithCompressionInfoV2Response
impl<'de> Deserialize<'de> for PostGetTransactionWithCompressionInfoV2Response
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<PostGetTransactionWithCompressionInfoV2Response> for PostGetTransactionWithCompressionInfoV2Response
impl From<PostGetTransactionWithCompressionInfoV2Response> for PostGetTransactionWithCompressionInfoV2Response
Source§fn from(value: PostGetTransactionWithCompressionInfoV2Response) -> Self
fn from(value: PostGetTransactionWithCompressionInfoV2Response) -> Self
Converts to this type from the input type.
Source§impl TryFrom<PostGetTransactionWithCompressionInfoV2Response> for PostGetTransactionWithCompressionInfoV2Response
impl TryFrom<PostGetTransactionWithCompressionInfoV2Response> for PostGetTransactionWithCompressionInfoV2Response
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: PostGetTransactionWithCompressionInfoV2Response,
) -> Result<Self, ConversionError>
fn try_from( value: PostGetTransactionWithCompressionInfoV2Response, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PostGetTransactionWithCompressionInfoV2Response
impl RefUnwindSafe for PostGetTransactionWithCompressionInfoV2Response
impl Send for PostGetTransactionWithCompressionInfoV2Response
impl Sync for PostGetTransactionWithCompressionInfoV2Response
impl Unpin for PostGetTransactionWithCompressionInfoV2Response
impl UnsafeUnpin for PostGetTransactionWithCompressionInfoV2Response
impl UnwindSafe for PostGetTransactionWithCompressionInfoV2Response
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