pub struct SolMessageCriterion {
pub match_: String,
pub type_: SolMessageCriterionType,
}Expand description
The criterion for the message of a Solana transaction.
JSON schema
{
"title": "SolMessageCriterion",
"description": "The criterion for the message of a Solana transaction.",
"type": "object",
"required": [
"match",
"type"
],
"properties": {
"match": {
"description": "A regular expression the field is matched against.",
"examples": [
"^hello ([a-z]+)$"
],
"type": "string"
},
"type": {
"description": "The type of criterion to use. This should be `solMessage`.",
"examples": [
"solMessage"
],
"type": "string",
"enum": [
"solMessage"
]
}
},
"x-audience": "public"
}Fields§
§match_: StringA regular expression the field is matched against.
type_: SolMessageCriterionTypeThe type of criterion to use. This should be solMessage.
Implementations§
Source§impl SolMessageCriterion
impl SolMessageCriterion
pub fn builder() -> SolMessageCriterion
Trait Implementations§
Source§impl Clone for SolMessageCriterion
impl Clone for SolMessageCriterion
Source§fn clone(&self) -> SolMessageCriterion
fn clone(&self) -> SolMessageCriterion
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 SolMessageCriterion
impl Debug for SolMessageCriterion
Source§impl<'de> Deserialize<'de> for SolMessageCriterion
impl<'de> Deserialize<'de> for SolMessageCriterion
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<&SolMessageCriterion> for SolMessageCriterion
impl From<&SolMessageCriterion> for SolMessageCriterion
Source§fn from(value: &SolMessageCriterion) -> Self
fn from(value: &SolMessageCriterion) -> Self
Converts to this type from the input type.
Source§impl From<SolMessageCriterion> for SolMessageCriterion
impl From<SolMessageCriterion> for SolMessageCriterion
Source§fn from(value: SolMessageCriterion) -> Self
fn from(value: SolMessageCriterion) -> Self
Converts to this type from the input type.
Source§impl Serialize for SolMessageCriterion
impl Serialize for SolMessageCriterion
Source§impl TryFrom<SolMessageCriterion> for SolMessageCriterion
impl TryFrom<SolMessageCriterion> for SolMessageCriterion
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SolMessageCriterion) -> Result<Self, ConversionError>
fn try_from(value: SolMessageCriterion) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SolMessageCriterion
impl RefUnwindSafe for SolMessageCriterion
impl Send for SolMessageCriterion
impl Sync for SolMessageCriterion
impl Unpin for SolMessageCriterion
impl UnwindSafe for SolMessageCriterion
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