#[non_exhaustive]pub struct MessageAttachment {
pub attachment_type: String,
pub media_type: String,
pub width: Option<u32>,
pub height: Option<u32>,
pub attachment_id: Option<String>,
}Expand description
userMessage image attachment metadata: metadata only — the durable bytes
live in the log and are reachable on the raw altitude.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.attachment_type: StringAttachment type, "image" in v1 (free string: attachment vocabulary
grows additively with the runtime’s intake surface).
media_type: StringThe image media type (e.g. "image/png").
width: Option<u32>Pixel width, when known.
height: Option<u32>Pixel height, when known.
attachment_id: Option<String>This attachment’s name, <itemId>/<n> — the item’s id plus this entry’s
1-based position in its attachments array. Name only: no link form and
no byte read by id.
Set by the server on every attachment entry it emits, and identical on live, paging, snapshot and rebuild paths. Optional in the schema so older servers stay valid; clients compare and store the whole string and MUST NOT parse it.
Trait Implementations§
Source§impl Clone for MessageAttachment
impl Clone for MessageAttachment
Source§impl Debug for MessageAttachment
impl Debug for MessageAttachment
Source§impl<'de> Deserialize<'de> for MessageAttachment
impl<'de> Deserialize<'de> for MessageAttachment
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 MessageAttachment
Source§impl PartialEq for MessageAttachment
impl PartialEq for MessageAttachment
Source§impl Serialize for MessageAttachment
impl Serialize for MessageAttachment
impl StructuralPartialEq for MessageAttachment
Auto Trait Implementations§
impl Forget for MessageAttachment
impl Freeze for MessageAttachment
impl Move for MessageAttachment
impl RefUnwindSafe for MessageAttachment
impl Send for MessageAttachment
impl Sync for MessageAttachment
impl Unpin for MessageAttachment
impl UnsafeUnpin 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