pub struct UpdateTopicOptions { /* private fields */ }Expand description
List of changes to apply to a Topic.
Implementations§
Source§impl UpdateTopicOptions
impl UpdateTopicOptions
pub const fn new() -> Self
Sourcepub fn with_name(self, name: impl Into<String>) -> Self
pub fn with_name(self, name: impl Into<String>) -> Self
The topic name. Max length is 50 characters.
Sourcepub fn with_description(self, description: impl Into<String>) -> Self
pub fn with_description(self, description: impl Into<String>) -> Self
The topic description. Max length is 200 character
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 UpdateTopicOptions
impl Clone for UpdateTopicOptions
Source§fn clone(&self) -> UpdateTopicOptions
fn clone(&self) -> UpdateTopicOptions
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 UpdateTopicOptions
impl Debug for UpdateTopicOptions
Source§impl Default for UpdateTopicOptions
impl Default for UpdateTopicOptions
Source§fn default() -> UpdateTopicOptions
fn default() -> UpdateTopicOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpdateTopicOptions
impl RefUnwindSafe for UpdateTopicOptions
impl Send for UpdateTopicOptions
impl Sync for UpdateTopicOptions
impl Unpin for UpdateTopicOptions
impl UnsafeUnpin for UpdateTopicOptions
impl UnwindSafe for UpdateTopicOptions
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