pub struct GetMessages {
pub around: Option<Snowflake>,
pub before: Option<Snowflake>,
pub after: Option<Snowflake>,
pub limit: Option<u8>,
}Available on crate features
rest-messages and rest only.Expand description
Which messages BotClient::get_messages returns: at most one of around, before,
after; newest first otherwise
Fields§
§around: Option<Snowflake>Messages around this id
before: Option<Snowflake>Messages before this id
after: Option<Snowflake>Messages after this id
limit: Option<u8>1-100, default 50
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GetMessages
impl RefUnwindSafe for GetMessages
impl Send for GetMessages
impl Sync for GetMessages
impl Unpin for GetMessages
impl UnsafeUnpin for GetMessages
impl UnwindSafe for GetMessages
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