pub struct DefaultChannelGroup { /* private fields */ }Expand description
Represents details of a default channel group.
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 DefaultChannelGroup
impl DefaultChannelGroup
Sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
Gets the DefaultChannelGroup name.
Name of the default channel group.
Sourcepub fn set_name<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_name<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the DefaultChannelGroup name.
Name of the default channel group.
Sourcepub fn unset_name(&mut self) -> Option<String>
pub fn unset_name(&mut self) -> Option<String>
Unsets the DefaultChannelGroup name.
Name of the default channel group.
Sourcepub fn with_name<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_name<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the DefaultChannelGroup name.
Name of the default channel group.
Sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Gets the DefaultChannelGroup description.
Description of the default channel group.
Sourcepub fn set_description<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_description<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the DefaultChannelGroup description.
Description of the default channel group.
Sourcepub fn unset_description(&mut self) -> Option<String>
pub fn unset_description(&mut self) -> Option<String>
Unsets the DefaultChannelGroup description.
Description of the default channel group.
Sourcepub fn with_description<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_description<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the DefaultChannelGroup description.
Description of the default channel group.
Sourcepub fn streams(&self) -> Option<&[u64]>
pub fn streams(&self) -> Option<&[u64]>
Gets the DefaultChannelGroup streams.
An array of IDs of all the channels in the default stream group.
Changes: Before Zulip 10.0 (feature level 330), we sent array of dictionaries where each dictionary contained details about a single stream in the default stream group.
Sourcepub fn set_streams<'a, C: Into<Cow<'a, [u64]>>>(&mut self, val: C)
pub fn set_streams<'a, C: Into<Cow<'a, [u64]>>>(&mut self, val: C)
Sets the DefaultChannelGroup streams.
An array of IDs of all the channels in the default stream group.
Changes: Before Zulip 10.0 (feature level 330), we sent array of dictionaries where each dictionary contained details about a single stream in the default stream group.
Sourcepub fn unset_streams(&mut self) -> Option<Vec<u64>>
pub fn unset_streams(&mut self) -> Option<Vec<u64>>
Unsets the DefaultChannelGroup streams.
An array of IDs of all the channels in the default stream group.
Changes: Before Zulip 10.0 (feature level 330), we sent array of dictionaries where each dictionary contained details about a single stream in the default stream group.
Sourcepub fn with_streams<'a, C: Into<Cow<'a, [u64]>>>(self, val: C) -> Self
pub fn with_streams<'a, C: Into<Cow<'a, [u64]>>>(self, val: C) -> Self
Builder function that sets the DefaultChannelGroup streams.
An array of IDs of all the channels in the default stream group.
Changes: Before Zulip 10.0 (feature level 330), we sent array of dictionaries where each dictionary contained details about a single stream in the default stream group.
Source§impl DefaultChannelGroup
impl DefaultChannelGroup
Sourcepub const fn id(&self) -> Option<u64>
pub const fn id(&self) -> Option<u64>
Gets the DefaultChannelGroup id.
The ID of the default channel group.
Sourcepub fn set_id(&mut self, val: u64)
pub fn set_id(&mut self, val: u64)
Sets the DefaultChannelGroup id.
The ID of the default channel group.
Sourcepub fn unset_id(&mut self) -> Option<u64>
pub fn unset_id(&mut self) -> Option<u64>
Unsets the DefaultChannelGroup id.
The ID of the default channel group.
Sourcepub fn with_id(self, val: u64) -> Self
pub fn with_id(self, val: u64) -> Self
Builder function that sets the DefaultChannelGroup id.
The ID of the default channel group.