pub struct MessageSubmission {
pub author: MessageAuthor,
pub text: String,
pub attachments: Vec<SessionFileReference>,
pub requested_delivery: Option<ActiveMessageDelivery>,
pub target_turn_id: Option<String>,
}Expand description
One provider-neutral conversation message submitted to an agent.
Fields§
§text: String§attachments: Vec<SessionFileReference>§requested_delivery: Option<ActiveMessageDelivery>§target_turn_id: Option<String>Implementations§
Source§impl MessageSubmission
impl MessageSubmission
Sourcepub fn validate(&self, limits: SessionFileLimits) -> Result<()>
pub fn validate(&self, limits: SessionFileLimits) -> Result<()>
Validates neutral message and file-reference invariants at the agent boundary.
Trait Implementations§
Source§impl Clone for MessageSubmission
impl Clone for MessageSubmission
Source§fn clone(&self) -> MessageSubmission
fn clone(&self) -> MessageSubmission
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 MessageSubmission
impl Debug for MessageSubmission
Source§impl<'de> Deserialize<'de> for MessageSubmission
impl<'de> Deserialize<'de> for MessageSubmission
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 Eq for MessageSubmission
Source§impl PartialEq for MessageSubmission
impl PartialEq for MessageSubmission
Source§impl Serialize for MessageSubmission
impl Serialize for MessageSubmission
impl StructuralPartialEq for MessageSubmission
Auto Trait Implementations§
impl Freeze for MessageSubmission
impl RefUnwindSafe for MessageSubmission
impl Send for MessageSubmission
impl Sync for MessageSubmission
impl Unpin for MessageSubmission
impl UnsafeUnpin for MessageSubmission
impl UnwindSafe for MessageSubmission
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.