Struct discord_flows::model::Options
source · pub struct Options {
pub delete_member_days: Option<u64>,
pub members_removed: Option<u64>,
pub channel_id: Option<ChannelId>,
pub count: Option<u64>,
pub id: Option<GenericId>,
pub kind: Option<String>,
pub message_id: Option<MessageId>,
pub role_name: Option<String>,
}
Expand description
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.delete_member_days: Option<u64>
Number of days after which inactive members were kicked.
members_removed: Option<u64>
Number of members removed by the prune
channel_id: Option<ChannelId>
Channel in which the messages were deleted
count: Option<u64>
Number of deleted messages.
id: Option<GenericId>
Id of the overwritten entity
kind: Option<String>
Type of overwritten entity (“member” or “role”).
message_id: Option<MessageId>
Message that was pinned or unpinned.
role_name: Option<String>
Name of the role if type is “role”
Trait Implementations§
source§impl<'de> Deserialize<'de> for Options
impl<'de> Deserialize<'de> for Options
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Options, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Options, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for Options
impl Serialize for Options
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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