pub struct AttachmentCatalogEntry {
pub id: String,
pub media_type: String,
pub excerpt: String,
pub reference: AttachmentRef,
}Expand description
An attachment of a user message below the fork, offered to the compaction model so the handoff can name it to be kept.
The catalog is built when the fork is taken and the instruction renders exactly it, so on apply a named id resolves against what the model saw and the attachment stays in the message it came with.
Fields§
§id: StringThe id the handoff names, attachment-N in conversation order.
media_type: StringThe attachment’s media type.
excerpt: StringThe beginning of the user message the attachment came with, empty when the message has no text.
reference: AttachmentRefWhere the attachment sits in the window.
Trait Implementations§
Source§impl Clone for AttachmentCatalogEntry
impl Clone for AttachmentCatalogEntry
Source§impl Debug for AttachmentCatalogEntry
impl Debug for AttachmentCatalogEntry
impl Eq for AttachmentCatalogEntry
Source§impl PartialEq for AttachmentCatalogEntry
impl PartialEq for AttachmentCatalogEntry
impl StructuralPartialEq for AttachmentCatalogEntry
Auto Trait Implementations§
impl Forget for AttachmentCatalogEntry
impl Freeze for AttachmentCatalogEntry
impl Move for AttachmentCatalogEntry
impl RefUnwindSafe for AttachmentCatalogEntry
impl Send for AttachmentCatalogEntry
impl Sync for AttachmentCatalogEntry
impl Unpin for AttachmentCatalogEntry
impl UnsafeUnpin for AttachmentCatalogEntry
impl UnwindSafe for AttachmentCatalogEntry
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.