pub struct SolNetworkCriterion {
pub networks: Vec<SolNetworkCriterionNetworksItem>,
pub operator: SolNetworkCriterionOperator,
pub type_: SolNetworkCriterionType,
}Expand description
The criterion for the Solana network of a transaction.
JSON schema
{
"title": "SolNetworkCriterion",
"description": "The criterion for the Solana network of a transaction.",
"type": "object",
"required": [
"networks",
"operator",
"type"
],
"properties": {
"networks": {
"description": "The Solana networks that the transaction's intended network should be compared to.",
"examples": [
[
"solana-devnet",
"solana"
]
],
"type": "array",
"items": {
"description": "The Solana network the transaction is for.",
"examples": [
"solana-devnet"
],
"type": "string",
"enum": [
"solana-devnet",
"solana"
]
}
},
"operator": {
"description": "The operator to use for the comparison. The transaction's intended network will be on the left-hand side of the operator, and the `networks` field will be on the right-hand side.",
"examples": [
"in"
],
"type": "string",
"enum": [
"in",
"not in"
]
},
"type": {
"description": "The type of criterion to use. This should be `solNetwork`.",
"examples": [
"solNetwork"
],
"type": "string",
"enum": [
"solNetwork"
]
}
},
"x-audience": "public"
}Fields§
§networks: Vec<SolNetworkCriterionNetworksItem>The Solana networks that the transaction’s intended network should be compared to.
operator: SolNetworkCriterionOperatorThe operator to use for the comparison. The transaction’s intended network will be on the left-hand side of the operator, and the networks field will be on the right-hand side.
type_: SolNetworkCriterionTypeThe type of criterion to use. This should be solNetwork.
Implementations§
Source§impl SolNetworkCriterion
impl SolNetworkCriterion
pub fn builder() -> SolNetworkCriterion
Trait Implementations§
Source§impl Clone for SolNetworkCriterion
impl Clone for SolNetworkCriterion
Source§fn clone(&self) -> SolNetworkCriterion
fn clone(&self) -> SolNetworkCriterion
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 SolNetworkCriterion
impl Debug for SolNetworkCriterion
Source§impl<'de> Deserialize<'de> for SolNetworkCriterion
impl<'de> Deserialize<'de> for SolNetworkCriterion
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<&SolNetworkCriterion> for SolNetworkCriterion
impl From<&SolNetworkCriterion> for SolNetworkCriterion
Source§fn from(value: &SolNetworkCriterion) -> Self
fn from(value: &SolNetworkCriterion) -> Self
Converts to this type from the input type.
Source§impl From<SolNetworkCriterion> for SendSolTransactionCriteriaItem
impl From<SolNetworkCriterion> for SendSolTransactionCriteriaItem
Source§fn from(value: SolNetworkCriterion) -> Self
fn from(value: SolNetworkCriterion) -> Self
Converts to this type from the input type.
Source§impl From<SolNetworkCriterion> for SolNetworkCriterion
impl From<SolNetworkCriterion> for SolNetworkCriterion
Source§fn from(value: SolNetworkCriterion) -> Self
fn from(value: SolNetworkCriterion) -> Self
Converts to this type from the input type.
Source§impl Serialize for SolNetworkCriterion
impl Serialize for SolNetworkCriterion
Source§impl TryFrom<SolNetworkCriterion> for SolNetworkCriterion
impl TryFrom<SolNetworkCriterion> for SolNetworkCriterion
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SolNetworkCriterion) -> Result<Self, ConversionError>
fn try_from(value: SolNetworkCriterion) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SolNetworkCriterion
impl RefUnwindSafe for SolNetworkCriterion
impl Send for SolNetworkCriterion
impl Sync for SolNetworkCriterion
impl Unpin for SolNetworkCriterion
impl UnwindSafe for SolNetworkCriterion
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