pub struct UserTopic { /* private fields */ }Expand description
Represents the user’s configuration for a given topic.
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 UserTopic
impl UserTopic
Sourcepub const fn stream_id(&self) -> Option<u64>
pub const fn stream_id(&self) -> Option<u64>
Gets the UserTopic stream_id.
The ID of the channel to which the topic belongs.
Sourcepub fn set_stream_id(&mut self, val: u64)
pub fn set_stream_id(&mut self, val: u64)
Sets the UserTopic stream_id.
The ID of the channel to which the topic belongs.
Sourcepub fn unset_stream_id(&mut self) -> Option<u64>
pub fn unset_stream_id(&mut self) -> Option<u64>
Unsets the UserTopic stream_id.
The ID of the channel to which the topic belongs.
Sourcepub fn with_stream_id(self, val: u64) -> Self
pub fn with_stream_id(self, val: u64) -> Self
Builder function that sets the UserTopic stream_id.
The ID of the channel to which the topic belongs.
Sourcepub const fn last_updated(&self) -> Option<u64>
pub const fn last_updated(&self) -> Option<u64>
Gets the UserTopic last_updated.
An integer UNIX timestamp representing when the user-topic relationship was changed.
Sourcepub fn set_last_updated(&mut self, val: u64)
pub fn set_last_updated(&mut self, val: u64)
Sets the UserTopic last_updated.
An integer UNIX timestamp representing when the user-topic relationship was changed.
Sourcepub fn unset_last_updated(&mut self) -> Option<u64>
pub fn unset_last_updated(&mut self) -> Option<u64>
Unsets the UserTopic last_updated.
An integer UNIX timestamp representing when the user-topic relationship was changed.
Sourcepub fn with_last_updated(self, val: u64) -> Self
pub fn with_last_updated(self, val: u64) -> Self
Builder function that sets the UserTopic last_updated.
An integer UNIX timestamp representing when the user-topic relationship was changed.
Sourcepub const fn visibility_policy(&self) -> Option<VisibilityPolicy>
pub const fn visibility_policy(&self) -> Option<VisibilityPolicy>
Gets the UserTopic visibility_policy.
An integer indicating the user’s visibility configuration for the topic.
Sourcepub fn set_visibility_policy(&mut self, val: VisibilityPolicy)
pub fn set_visibility_policy(&mut self, val: VisibilityPolicy)
Sets the UserTopic visibility_policy.
An integer indicating the user’s visibility configuration for the topic.
Sourcepub fn unset_visibility_policy(&mut self) -> Option<VisibilityPolicy>
pub fn unset_visibility_policy(&mut self) -> Option<VisibilityPolicy>
Unsets the UserTopic visibility_policy.
An integer indicating the user’s visibility configuration for the topic.
Sourcepub fn with_visibility_policy(self, val: VisibilityPolicy) -> Self
pub fn with_visibility_policy(self, val: VisibilityPolicy) -> Self
Builder function that sets the UserTopic visibility_policy.
An integer indicating the user’s visibility configuration for the topic.
Source§impl UserTopic
impl UserTopic
Sourcepub fn topic_name(&self) -> Option<&str>
pub fn topic_name(&self) -> Option<&str>
Gets the UserTopic topic_name.
The name of the topic.
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_name<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_topic_name<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the UserTopic topic_name.
The name of the topic.
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_name(&mut self) -> Option<String>
pub fn unset_topic_name(&mut self) -> Option<String>
Unsets the UserTopic topic_name.
The name of the topic.
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_name<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_topic_name<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the UserTopic topic_name.
The name of the topic.
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).