pub struct UnreadMsgsStream { /* private fields */ }Expand description
Represents details of all unread messages of a single subscribed channel.
This includes muted channels and muted topics, even though those messages are excluded from count. Changes: Prior to Zulip 5.0 (feature level 90), these objects included a sender_ids property, which listed the set of IDs of users who had sent the unread messages.
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 UnreadMsgsStream
impl UnreadMsgsStream
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new UnreadMsgsStream.
Source§impl UnreadMsgsStream
impl UnreadMsgsStream
Sourcepub fn topic(&self) -> Option<&str>
pub fn topic(&self) -> Option<&str>
Gets the UnreadMsgsStream topic.
The topic under which the messages were sent.
Note that the empty string topic may have been rewritten by the server to the value of realm_empty_topic_display_name found in the
POST /register response depending on the value of the empty_topic_name
Changes: The empty_topic_name client capability is new in Zulip 10.0 (feature level 334).
Sourcepub fn set_topic<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_topic<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the UnreadMsgsStream topic.
The topic under which the messages were sent.
Note that the empty string topic may have been rewritten by the server to the value of realm_empty_topic_display_name found in the
POST /register response depending on the value of the empty_topic_name
Changes: The empty_topic_name client capability is new in Zulip 10.0 (feature level 334).
Sourcepub fn unset_topic(&mut self) -> Option<String>
pub fn unset_topic(&mut self) -> Option<String>
Unsets the UnreadMsgsStream topic.
The topic under which the messages were sent.
Note that the empty string topic may have been rewritten by the server to the value of realm_empty_topic_display_name found in the
POST /register response depending on the value of the empty_topic_name
Changes: The empty_topic_name client capability is new in Zulip 10.0 (feature level 334).
Sourcepub fn with_topic<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_topic<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the UnreadMsgsStream topic.
The topic under which the messages were sent.
Note that the empty string topic may have been rewritten by the server to the value of realm_empty_topic_display_name found in the
POST /register response depending on the value of the empty_topic_name
Changes: The empty_topic_name client capability is new in Zulip 10.0 (feature level 334).
Sourcepub fn unread_message_ids(&self) -> Option<&[i32]>
pub fn unread_message_ids(&self) -> Option<&[i32]>
Gets the UnreadMsgsStream unread_message_ids.
The message IDs of the recent unread messages sent in this channel, sorted in ascending order.
Sourcepub fn set_unread_message_ids<'a, C: Into<Cow<'a, [i32]>>>(&mut self, val: C)
pub fn set_unread_message_ids<'a, C: Into<Cow<'a, [i32]>>>(&mut self, val: C)
Sets the UnreadMsgsStream unread_message_ids.
The message IDs of the recent unread messages sent in this channel, sorted in ascending order.
Sourcepub fn unset_unread_message_ids(&mut self) -> Option<Vec<i32>>
pub fn unset_unread_message_ids(&mut self) -> Option<Vec<i32>>
Unsets the UnreadMsgsStream unread_message_ids.
The message IDs of the recent unread messages sent in this channel, sorted in ascending order.
Sourcepub fn with_unread_message_ids<'a, C: Into<Cow<'a, [i32]>>>(
self,
val: C,
) -> Self
pub fn with_unread_message_ids<'a, C: Into<Cow<'a, [i32]>>>( self, val: C, ) -> Self
Builder function that sets the UnreadMsgsStream unread_message_ids.
The message IDs of the recent unread messages sent in this channel, sorted in ascending order.
Source§impl UnreadMsgsStream
impl UnreadMsgsStream
Sourcepub const fn stream_id(&self) -> Option<i32>
pub const fn stream_id(&self) -> Option<i32>
Gets the UnreadMsgsStream stream_id.
The ID of the channel to which the messages were sent.
Sourcepub fn set_stream_id(&mut self, val: i32)
pub fn set_stream_id(&mut self, val: i32)
Sets the UnreadMsgsStream stream_id.
The ID of the channel to which the messages were sent.
Sourcepub fn unset_stream_id(&mut self) -> Option<i32>
pub fn unset_stream_id(&mut self) -> Option<i32>
Unsets the UnreadMsgsStream stream_id.
The ID of the channel to which the messages were sent.
Sourcepub fn with_stream_id(self, val: i32) -> Self
pub fn with_stream_id(self, val: i32) -> Self
Builder function that sets the UnreadMsgsStream stream_id.
The ID of the channel to which the messages were sent.