pub struct CreateTopicOptions { /* private fields */ }Expand description
See relevant docs.
Implementations§
Source§impl CreateTopicOptions
impl CreateTopicOptions
Sourcepub fn new(
name: impl Into<String>,
default_subscription: SubscriptionType,
) -> Self
pub fn new( name: impl Into<String>, default_subscription: SubscriptionType, ) -> Self
Creates a new CreateTopicOptions.
name: The topic name. Max length is50characters.default_subscription: The default subscription preference for new contacts.
Sourcepub fn with_description(self, description: String) -> Self
pub fn with_description(self, description: String) -> Self
The topic description. Max length is 200 characters.
Sourcepub const fn with_visibility(self, visibility: TopicVisibility) -> Self
pub const fn with_visibility(self, visibility: TopicVisibility) -> Self
The visibility of the topic on the unsubscribe page.
Trait Implementations§
Source§impl Clone for CreateTopicOptions
impl Clone for CreateTopicOptions
Source§fn clone(&self) -> CreateTopicOptions
fn clone(&self) -> CreateTopicOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateTopicOptions
impl Debug for CreateTopicOptions
Auto Trait Implementations§
impl Freeze for CreateTopicOptions
impl RefUnwindSafe for CreateTopicOptions
impl Send for CreateTopicOptions
impl Sync for CreateTopicOptions
impl Unpin for CreateTopicOptions
impl UnsafeUnpin for CreateTopicOptions
impl UnwindSafe for CreateTopicOptions
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