pub struct MessageAttachment { /* private fields */ }Expand description
Attachment to include with a thread message.
Implementations§
Source§impl MessageAttachment
impl MessageAttachment
Sourcepub fn for_code_interpreter(file_id: impl Into<String>) -> Self
pub fn for_code_interpreter(file_id: impl Into<String>) -> Self
Attach a file for the code interpreter tool.
Sourcepub fn for_file_search(file_id: impl Into<String>) -> Self
pub fn for_file_search(file_id: impl Into<String>) -> Self
Attach a file for the file search tool.
Sourcepub fn with_tool(self, tool: AttachmentTool) -> Self
pub fn with_tool(self, tool: AttachmentTool) -> Self
Add an additional tool that should receive this attachment.
Trait Implementations§
Source§impl Clone for MessageAttachment
impl Clone for MessageAttachment
Source§fn clone(&self) -> MessageAttachment
fn clone(&self) -> MessageAttachment
Returns a duplicate of the value. Read more
1.0.0 · 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 MessageAttachment
impl Debug for MessageAttachment
Source§impl PartialEq for MessageAttachment
impl PartialEq for MessageAttachment
impl Eq for MessageAttachment
impl StructuralPartialEq for MessageAttachment
Auto Trait Implementations§
impl Freeze for MessageAttachment
impl RefUnwindSafe for MessageAttachment
impl Send for MessageAttachment
impl Sync for MessageAttachment
impl Unpin for MessageAttachment
impl UnwindSafe for MessageAttachment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.