pub struct AttachmentFile {
pub asset_id: Option<String>,
pub byte_length: Option<i64>,
pub display_name: String,
pub line_range: Option<AttachmentFileLineRange>,
pub mime_type: Option<String>,
pub omitted_reason: Option<OmittedBinaryOmittedReason>,
pub path: String,
pub type: AttachmentFileType,
}Expand description
File attachment
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§asset_id: Option<String>Internal: content-addressed id of the session.binary_asset event holding this attachment’s model-facing bytes (e.g. “sha256:…”). Absent externally.
byte_length: Option<i64>Internal: decoded byte length of the attachment’s model-facing bytes. Absent externally.
display_name: StringUser-facing display name for the attachment
line_range: Option<AttachmentFileLineRange>Optional line range to scope the attachment to a specific section of the file
mime_type: Option<String>Internal: MIME type of the file’s model-facing bytes (post-resize for images). Set when the file’s bytes are interned to an asset. Absent externally.
omitted_reason: Option<OmittedBinaryOmittedReason>Internal: why model-facing bytes are absent from persistence. Absent externally.
path: StringAbsolute file path
type: AttachmentFileTypeAttachment type discriminator
Trait Implementations§
Source§impl Clone for AttachmentFile
impl Clone for AttachmentFile
Source§fn clone(&self) -> AttachmentFile
fn clone(&self) -> AttachmentFile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more