pub struct SendAttachmentsToMessageParams {
pub attachments: Vec<Value>,
pub instance_id: Option<String>,
}Expand description
Parameters for session.extensions.sendAttachmentsToMessage.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§attachments: Vec<Value>Attachments to push into the next user-message turn. extension_context entries take the slim shape; standard variants take their full AttachmentSchema shape.
instance_id: Option<String>Optional canvas instance binding the push for provenance. When supplied, the runtime resolves the canvas, verifies it is owned by the calling extension, and stamps canvasId/instanceId onto each extension_context entry. When omitted, no resolution runs and those fields stay unset on the attachment.
Trait Implementations§
Source§impl Clone for SendAttachmentsToMessageParams
impl Clone for SendAttachmentsToMessageParams
Source§fn clone(&self) -> SendAttachmentsToMessageParams
fn clone(&self) -> SendAttachmentsToMessageParams
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 Default for SendAttachmentsToMessageParams
impl Default for SendAttachmentsToMessageParams
Source§fn default() -> SendAttachmentsToMessageParams
fn default() -> SendAttachmentsToMessageParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SendAttachmentsToMessageParams
impl<'de> Deserialize<'de> for SendAttachmentsToMessageParams
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
Auto Trait Implementations§
impl Freeze for SendAttachmentsToMessageParams
impl RefUnwindSafe for SendAttachmentsToMessageParams
impl Send for SendAttachmentsToMessageParams
impl Sync for SendAttachmentsToMessageParams
impl Unpin for SendAttachmentsToMessageParams
impl UnsafeUnpin for SendAttachmentsToMessageParams
impl UnwindSafe for SendAttachmentsToMessageParams
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