pub struct MutedTopic(/* private fields */);Expand description
Represents a muted topic.
- The first element of the tuple is the channel name in which the topic has to be muted
- The second element is the topic name to be muted
- The third element is an integer UNIX timestamp representing when the topic was muted
Changes: Deprecated in Zulip 6.0 (feature level 134). Starting with this version, muted_topics will only be present in the response if the user_topic object, which generalizes and replaces this field, is not explicitly requested via fetch_event_types. Before Zulip 3.0 (feature level 1), the muted_topics array objects were 2-item tuples and did not include the timestamp information for when the topic was muted.
Modified from openapi-generator-cli output:
$ openapi-generator-cli generate -g rust -i ./zerver/openapi/zulip.yaml -o zulip-openapi --skip-validate-spec/*
* Zulip REST API
*
* Powerful open source group chat
*
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://openapi-generator.tech
*/See zerver/openapi/zulip.yaml for the original OpenAPI configuration.
Configuration slightly modified to work with the Rust generator of openapi-generator-cli.
Implementations§
Source§impl MutedTopic
impl MutedTopic
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new MutedTopic.
Sourcepub fn channel_name(&self) -> &str
pub fn channel_name(&self) -> &str
Gets the channel name.
Sourcepub fn set_channel_name(&mut self, val: String)
pub fn set_channel_name(&mut self, val: String)
Sets the channel name.
Sourcepub fn with_channel_name(self, val: String) -> Self
pub fn with_channel_name(self, val: String) -> Self
Builder function that sets the channel name.
Sourcepub fn topic_name(&self) -> &str
pub fn topic_name(&self) -> &str
Gets the topic name.
Sourcepub fn set_topic_name(&mut self, val: String)
pub fn set_topic_name(&mut self, val: String)
Sets the topic name.
Sourcepub fn with_topic_name(self, val: String) -> Self
pub fn with_topic_name(self, val: String) -> Self
Builder function that sets the topic name.
Sourcepub fn set_timestamp(&mut self, val: u64)
pub fn set_timestamp(&mut self, val: u64)
Sets the timestamp.
Sourcepub fn with_timestamp(self, val: u64) -> Self
pub fn with_timestamp(self, val: u64) -> Self
Builder function that sets the timestamp.
Trait Implementations§
Source§impl Clone for MutedTopic
impl Clone for MutedTopic
Source§impl Debug for MutedTopic
impl Debug for MutedTopic
Source§impl Default for MutedTopic
impl Default for MutedTopic
Source§impl<'de> Deserialize<'de> for MutedTopic
impl<'de> Deserialize<'de> for MutedTopic
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>,
Source§impl Display for MutedTopic
impl Display for MutedTopic
impl Eq for MutedTopic
Source§impl PartialEq for MutedTopic
impl PartialEq for MutedTopic
Source§impl Serialize for MutedTopic
impl Serialize for MutedTopic
impl StructuralPartialEq for MutedTopic
Auto Trait Implementations§
impl Freeze for MutedTopic
impl RefUnwindSafe for MutedTopic
impl Send for MutedTopic
impl Sync for MutedTopic
impl Unpin for MutedTopic
impl UnsafeUnpin for MutedTopic
impl UnwindSafe for MutedTopic
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.