pub struct SolMessageObservation {
pub encoding: ObservedMessageEncoding,
pub message: ObservedMessageText,
pub truncated: bool,
pub type_: SolMessageObservationType,
}Expand description
The message a solMessage criterion matched its match expression against, after decoding the request’s base64 message when its encoding is base64.
JSON schema
{
"title": "SolMessageObservation",
"description": "The message a `solMessage` criterion matched its `match` expression against, after decoding the request's base64 `message` when its `encoding` is `base64`.",
"examples": [
{
"encoding": "utf8",
"message": "Hello, world",
"truncated": false,
"type": "solMessage"
}
],
"type": "object",
"required": [
"encoding",
"message",
"truncated",
"type"
],
"properties": {
"encoding": {
"$ref": "#/components/schemas/ObservedMessageEncoding"
},
"message": {
"$ref": "#/components/schemas/ObservedMessageText"
},
"truncated": {
"description": "Whether `message` was cut to its first 2048 characters. The expression was matched against the whole message.",
"examples": [
false
],
"type": "boolean"
},
"type": {
"description": "The criterion type.",
"examples": [
"solMessage"
],
"type": "string",
"enum": [
"solMessage"
],
"x-go-type": "string"
}
},
"additionalProperties": false
}Fields§
§encoding: ObservedMessageEncoding§message: ObservedMessageText§truncated: boolWhether message was cut to its first 2048 characters. The expression was matched against the whole message.
type_: SolMessageObservationTypeThe criterion type.
Implementations§
Source§impl SolMessageObservation
impl SolMessageObservation
pub fn builder() -> SolMessageObservation
Trait Implementations§
Source§impl Clone for SolMessageObservation
impl Clone for SolMessageObservation
Source§impl Debug for SolMessageObservation
impl Debug for SolMessageObservation
Source§impl<'de> Deserialize<'de> for SolMessageObservation
impl<'de> Deserialize<'de> for SolMessageObservation
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<&SolMessageObservation> for SolMessageObservation
impl From<&SolMessageObservation> for SolMessageObservation
Source§fn from(value: &SolMessageObservation) -> Self
fn from(value: &SolMessageObservation) -> Self
Converts to this type from the input type.
Source§impl From<SolMessageObservation> for PolicyCriterionObservation
impl From<SolMessageObservation> for PolicyCriterionObservation
Source§fn from(value: SolMessageObservation) -> Self
fn from(value: SolMessageObservation) -> Self
Converts to this type from the input type.
Source§impl From<SolMessageObservation> for SolMessageObservation
impl From<SolMessageObservation> for SolMessageObservation
Source§fn from(value: SolMessageObservation) -> Self
fn from(value: SolMessageObservation) -> Self
Converts to this type from the input type.
Source§impl Serialize for SolMessageObservation
impl Serialize for SolMessageObservation
Source§impl TryFrom<SolMessageObservation> for SolMessageObservation
impl TryFrom<SolMessageObservation> for SolMessageObservation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SolMessageObservation) -> Result<Self, ConversionError>
fn try_from(value: SolMessageObservation) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SolMessageObservation
impl RefUnwindSafe for SolMessageObservation
impl Send for SolMessageObservation
impl Sync for SolMessageObservation
impl Unpin for SolMessageObservation
impl UnsafeUnpin for SolMessageObservation
impl UnwindSafe for SolMessageObservation
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