pub struct ScheduledEventBuilder<'a> { /* private fields */ }Expand description
Builder for creating a Scheduled Event.
Implementations§
Source§impl<'a> ScheduledEventBuilder<'a>
impl<'a> ScheduledEventBuilder<'a>
Sourcepub fn new(
name: impl Into<TitanString<'a>>,
start_time: impl Into<TitanString<'a>>,
entity_type: ScheduledEventEntityType,
) -> Self
pub fn new( name: impl Into<TitanString<'a>>, start_time: impl Into<TitanString<'a>>, entity_type: ScheduledEventEntityType, ) -> Self
Create a new ScheduledEventBuilder.
Sourcepub fn description(self, description: impl Into<TitanString<'a>>) -> Self
pub fn description(self, description: impl Into<TitanString<'a>>) -> Self
Set description.
Sourcepub fn end_time(self, time: impl Into<TitanString<'a>>) -> Self
pub fn end_time(self, time: impl Into<TitanString<'a>>) -> Self
Set end time.
Sourcepub fn channel_id(self, id: impl Into<Snowflake>) -> Self
pub fn channel_id(self, id: impl Into<Snowflake>) -> Self
Set channel ID (required for Stage/Voice events).
Sourcepub fn location(self, location: impl Into<TitanString<'a>>) -> Self
pub fn location(self, location: impl Into<TitanString<'a>>) -> Self
Set location (required for External events).
Sourcepub fn image(self, image: impl Into<TitanString<'a>>) -> Self
pub fn image(self, image: impl Into<TitanString<'a>>) -> Self
Set cover image (base64).
Sourcepub fn build(self) -> CreateScheduledEvent<'a>
pub fn build(self) -> CreateScheduledEvent<'a>
Build the payload.
Trait Implementations§
Source§impl<'a> Clone for ScheduledEventBuilder<'a>
impl<'a> Clone for ScheduledEventBuilder<'a>
Source§fn clone(&self) -> ScheduledEventBuilder<'a>
fn clone(&self) -> ScheduledEventBuilder<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for ScheduledEventBuilder<'a>
impl<'a> RefUnwindSafe for ScheduledEventBuilder<'a>
impl<'a> Send for ScheduledEventBuilder<'a>
impl<'a> Sync for ScheduledEventBuilder<'a>
impl<'a> Unpin for ScheduledEventBuilder<'a>
impl<'a> UnwindSafe for ScheduledEventBuilder<'a>
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