pub struct SendSessionMessageRequest {
pub content: String,
pub command: Option<String>,
pub file_ids: Option<Vec<String>>,
pub workspace_id: Option<String>,
}Expand description
content is always present in the body; it may be the empty string when file_ids carries
at least one id.
Fields§
§content: StringMessage body. May be empty when file_ids is non-empty — a photo with no caption is an
ordinary message. A message with neither text nor files is refused.
command: Option<String>Optional slash-command string when the message is a builtin command.
file_ids: Option<Vec<String>>Optional attached file ids previously uploaded via /api/v1/files.
workspace_id: Option<String>Workspace override for this message; defaults to the agent’s workspace.
Trait Implementations§
Source§impl Clone for SendSessionMessageRequest
impl Clone for SendSessionMessageRequest
Source§fn clone(&self) -> SendSessionMessageRequest
fn clone(&self) -> SendSessionMessageRequest
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 SendSessionMessageRequest
impl Debug for SendSessionMessageRequest
Source§impl Default for SendSessionMessageRequest
impl Default for SendSessionMessageRequest
Source§fn default() -> SendSessionMessageRequest
fn default() -> SendSessionMessageRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SendSessionMessageRequest
impl<'de> Deserialize<'de> for SendSessionMessageRequest
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
impl StructuralPartialEq for SendSessionMessageRequest
Auto Trait Implementations§
impl Freeze for SendSessionMessageRequest
impl RefUnwindSafe for SendSessionMessageRequest
impl Send for SendSessionMessageRequest
impl Sync for SendSessionMessageRequest
impl Unpin for SendSessionMessageRequest
impl UnsafeUnpin for SendSessionMessageRequest
impl UnwindSafe for SendSessionMessageRequest
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