#[non_exhaustive]pub struct RecurrenceNWeekday {
pub n: u8,
pub day: RecurrenceWeekday,
}Expand description
The n-th weekday of a month, e.g. the second Tuesday.
discord.js counterpart: APIGuildScheduledEventRecurrenceRuleNWeekday (discord-api-types).
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.n: u8The week of the month (1-5).
day: RecurrenceWeekdayThe day of that week.
Implementations§
Source§impl RecurrenceNWeekday
impl RecurrenceNWeekday
Sourcepub const fn new(n: u8, day: RecurrenceWeekday) -> Self
pub const fn new(n: u8, day: RecurrenceWeekday) -> Self
The n-th (1-5) day of a month, e.g. new(2, RecurrenceWeekday::Tuesday) for the
second Tuesday.
discord.js counterpart: GuildScheduledEventRecurrenceRuleNWeekday.
Trait Implementations§
Source§impl Clone for RecurrenceNWeekday
impl Clone for RecurrenceNWeekday
impl Copy for RecurrenceNWeekday
Source§impl Debug for RecurrenceNWeekday
impl Debug for RecurrenceNWeekday
Source§impl<'de> Deserialize<'de> for RecurrenceNWeekday
impl<'de> Deserialize<'de> for RecurrenceNWeekday
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 RecurrenceNWeekday
Source§impl Hash for RecurrenceNWeekday
impl Hash for RecurrenceNWeekday
Source§impl PartialEq for RecurrenceNWeekday
impl PartialEq for RecurrenceNWeekday
Source§impl Serialize for RecurrenceNWeekday
impl Serialize for RecurrenceNWeekday
impl StructuralPartialEq for RecurrenceNWeekday
Auto Trait Implementations§
impl Freeze for RecurrenceNWeekday
impl RefUnwindSafe for RecurrenceNWeekday
impl Send for RecurrenceNWeekday
impl Sync for RecurrenceNWeekday
impl Unpin for RecurrenceNWeekday
impl UnsafeUnpin for RecurrenceNWeekday
impl UnwindSafe for RecurrenceNWeekday
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