pub struct MessageInfo {
pub id: i64,
pub from: String,
pub from_session: Option<String>,
pub announce: bool,
pub channel: Option<String>,
pub to: Option<String>,
pub to_session: Option<String>,
pub body: String,
pub reply_to: Option<i64>,
pub metadata: Value,
pub attachments: Vec<AttachmentMeta>,
pub created_at: String,
}Fields§
§id: i64§from: String§from_session: Option<String>Which of the sender’s working contexts wrote this; null is their
shared session. Reply to from/from_session to reach the window that
is waiting, rather than whichever one notices first.
announce: boolTrue when this was posted as an announcement: something the sender judged worth interrupting the whole team for, so it reaches every session regardless of which channel they are focused on.
channel: Option<String>Channel name for channel messages; null for direct messages.
to: Option<String>Recipient handle for direct messages; null for channel messages.
to_session: Option<String>Set when this direct message was addressed to one working context of
the recipient rather than to the person. null means every session of
theirs sees it.
body: String§reply_to: Option<i64>§metadata: Value§attachments: Vec<AttachmentMeta>Files attached to this message; fetch content with get_attachment.
created_at: StringTrait Implementations§
Source§impl Debug for MessageInfo
impl Debug for MessageInfo
Source§impl JsonSchema for MessageInfo
impl JsonSchema for MessageInfo
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for MessageInfo
impl RefUnwindSafe for MessageInfo
impl Send for MessageInfo
impl Sync for MessageInfo
impl Unpin for MessageInfo
impl UnsafeUnpin for MessageInfo
impl UnwindSafe for MessageInfo
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more