pub struct SendMessageRequest {
pub configuration: Option<SendMessageConfiguration>,
pub message: Option<Message>,
pub metadata: Option<Struct>,
pub tenant: String,
}Expand description
/////////// Request Messages ///////////
Represents a request for the message/send method.
JSON schema
{
"title": "Send Message Request",
"description": "/////////// Request Messages ///////////\n Represents a request for the `message/send` method.",
"type": "object",
"required": [
"tenant"
],
"properties": {
"configuration": {
"description": "Configuration for the send request.",
"$ref": "#/definitions/SendMessageConfiguration"
},
"message": {
"description": "The message to send to the agent.",
"$ref": "#/definitions/Message"
},
"metadata": {
"description": "A flexible key-value map for passing additional context or parameters.",
"$ref": "#/definitions/Struct"
},
"tenant": {
"description": "Optional tenant, provided as a path parameter.",
"type": "string"
}
},
"additionalProperties": false,
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Fields§
§configuration: Option<SendMessageConfiguration>Configuration for the send request.
message: Option<Message>The message to send to the agent.
metadata: Option<Struct>A flexible key-value map for passing additional context or parameters.
tenant: StringOptional tenant, provided as a path parameter.
Implementations§
Source§impl SendMessageRequest
impl SendMessageRequest
pub fn builder() -> SendMessageRequest
Trait Implementations§
Source§impl Clone for SendMessageRequest
impl Clone for SendMessageRequest
Source§fn clone(&self) -> SendMessageRequest
fn clone(&self) -> SendMessageRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SendMessageRequest
impl Debug for SendMessageRequest
Source§impl<'de> Deserialize<'de> for SendMessageRequest
impl<'de> Deserialize<'de> for SendMessageRequest
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<SendMessageRequest> for SendMessageRequest
impl From<SendMessageRequest> for SendMessageRequest
Source§fn from(value: SendMessageRequest) -> Self
fn from(value: SendMessageRequest) -> Self
Converts to this type from the input type.
Source§impl Serialize for SendMessageRequest
impl Serialize for SendMessageRequest
Source§impl TryFrom<SendMessageRequest> for SendMessageRequest
impl TryFrom<SendMessageRequest> for SendMessageRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SendMessageRequest) -> Result<Self, ConversionError>
fn try_from(value: SendMessageRequest) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SendMessageRequest
impl RefUnwindSafe for SendMessageRequest
impl Send for SendMessageRequest
impl Sync for SendMessageRequest
impl Unpin for SendMessageRequest
impl UnsafeUnpin for SendMessageRequest
impl UnwindSafe for SendMessageRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more