pub struct RecentPrivateConversation { /* private fields */ }Expand description
Represents a single recent direct conversation in the user’s history.
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 RecentPrivateConversation
impl RecentPrivateConversation
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new RecentPrivateConversation.
Source§impl RecentPrivateConversation
impl RecentPrivateConversation
Sourcepub const fn max_message_id(&self) -> Option<u64>
pub const fn max_message_id(&self) -> Option<u64>
Gets the RecentPrivateConversation max_message_id.
The highest message ID of the conversation, intended to support sorting the conversations by recency.
Sourcepub fn set_max_message_id(&mut self, val: u64)
pub fn set_max_message_id(&mut self, val: u64)
Sets the RecentPrivateConversation max_message_id.
The highest message ID of the conversation, intended to support sorting the conversations by recency.
Sourcepub fn unset_max_message_id(&mut self) -> Option<u64>
pub fn unset_max_message_id(&mut self) -> Option<u64>
Unsets the RecentPrivateConversation max_message_id.
The highest message ID of the conversation, intended to support sorting the conversations by recency.
Sourcepub fn with_max_message_id(self, val: u64) -> Self
pub fn with_max_message_id(self, val: u64) -> Self
Builder function that sets the RecentPrivateConversation max_message_id.
The highest message ID of the conversation, intended to support sorting the conversations by recency.
Source§impl RecentPrivateConversation
impl RecentPrivateConversation
Sourcepub fn user_ids(&self) -> Option<&[u64]>
pub fn user_ids(&self) -> Option<&[u64]>
Gets the RecentPrivateConversation user_ids.
The list of users other than the current user in the direct message conversation.
This will be an empty list for direct messages sent to oneself.
Sourcepub fn set_user_ids<'a, C: Into<Cow<'a, [u64]>>>(&mut self, val: C)
pub fn set_user_ids<'a, C: Into<Cow<'a, [u64]>>>(&mut self, val: C)
Sets the RecentPrivateConversation user_ids.
The list of users other than the current user in the direct message conversation.
This will be an empty list for direct messages sent to oneself.
Sourcepub fn unset_user_ids(&mut self) -> Option<Vec<u64>>
pub fn unset_user_ids(&mut self) -> Option<Vec<u64>>
Unsets the RecentPrivateConversation user_ids.
The list of users other than the current user in the direct message conversation.
This will be an empty list for direct messages sent to oneself.
Sourcepub fn with_user_ids<'a, C: Into<Cow<'a, [u64]>>>(self, val: C) -> Self
pub fn with_user_ids<'a, C: Into<Cow<'a, [u64]>>>(self, val: C) -> Self
Builder function that sets the RecentPrivateConversation user_ids.
The list of users other than the current user in the direct message conversation.
This will be an empty list for direct messages sent to oneself.