pub struct PostInput {
pub channel: Option<String>,
pub to: Option<String>,
pub announce: bool,
pub body: String,
pub reply_to: Option<i64>,
pub metadata: Option<Value>,
pub attachments: Vec<NewAttachment>,
}Fields§
§channel: Option<String>§to: Option<String>§announce: boolReach every session of the team even when they are focused on their own channel. Channel messages only.
body: String§reply_to: Option<i64>§metadata: Option<Value>§attachments: Vec<NewAttachment>Already decoded and size-checked; inserted in the same transaction as the message so readers never see the message without its files.
Auto Trait Implementations§
impl Freeze for PostInput
impl RefUnwindSafe for PostInput
impl Send for PostInput
impl Sync for PostInput
impl Unpin for PostInput
impl UnsafeUnpin for PostInput
impl UnwindSafe for PostInput
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