pub struct RealmEmoji { /* private fields */ }Expand description
Represents details about the emoji with the specified ID. It has the following properties:
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 RealmEmoji
impl RealmEmoji
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new RealmEmoji.
Source§impl RealmEmoji
impl RealmEmoji
Sourcepub fn id(&self) -> Option<&str>
pub fn id(&self) -> Option<&str>
Gets the RealmEmoji id.
The ID for this emoji, same as the object’s key.
Sourcepub fn set_id<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_id<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the RealmEmoji id.
The ID for this emoji, same as the object’s key.
Sourcepub fn unset_id(&mut self) -> Option<String>
pub fn unset_id(&mut self) -> Option<String>
Unsets the RealmEmoji id.
The ID for this emoji, same as the object’s key.
Sourcepub fn with_id<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_id<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the RealmEmoji id.
The ID for this emoji, same as the object’s key.
Sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
Gets the RealmEmoji name.
The user-friendly name for this emoji.
Users in the organization can use this emoji by writing this name between colons (:name :).
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 RealmEmoji name.
The user-friendly name for this emoji.
Users in the organization can use this emoji by writing this name between colons (:name :).
Sourcepub fn unset_name(&mut self) -> Option<String>
pub fn unset_name(&mut self) -> Option<String>
Unsets the RealmEmoji name.
The user-friendly name for this emoji.
Users in the organization can use this emoji by writing this name between colons (:name :).
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 RealmEmoji name.
The user-friendly name for this emoji.
Users in the organization can use this emoji by writing this name between colons (:name :).
Sourcepub fn source_url(&self) -> Option<&str>
pub fn source_url(&self) -> Option<&str>
Gets the RealmEmoji source_url.
The path relative to the organization’s URL where the emoji’s image can be found.
Sourcepub fn set_source_url<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_source_url<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the RealmEmoji source_url.
The path relative to the organization’s URL where the emoji’s image can be found.
Sourcepub fn unset_source_url(&mut self) -> Option<String>
pub fn unset_source_url(&mut self) -> Option<String>
Unsets the RealmEmoji source_url.
The path relative to the organization’s URL where the emoji’s image can be found.
Sourcepub fn with_source_url<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_source_url<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the RealmEmoji source_url.
The path relative to the organization’s URL where the emoji’s image can be found.
Sourcepub fn still_url(&self) -> Option<&str>
pub fn still_url(&self) -> Option<&str>
Gets the RealmEmoji still_url.
Only non-null when the emoji’s image is animated.
The path relative to the organization’s URL where a still (not animated) version of the emoji can be found.
(This is currently always the first frame of the animation).
This is useful for clients to display the emoji in contexts where continuously animating it would be a bad user experience (e.g. because it would be distracting).
Changes: New in Zulip 5.0 (added as optional field in feature level 97 and then made mandatory, but nullable, in feature level 113).
Sourcepub fn set_still_url<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_still_url<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the RealmEmoji still_url.
Only non-null when the emoji’s image is animated.
The path relative to the organization’s URL where a still (not animated) version of the emoji can be found.
(This is currently always the first frame of the animation).
This is useful for clients to display the emoji in contexts where continuously animating it would be a bad user experience (e.g. because it would be distracting).
Changes: New in Zulip 5.0 (added as optional field in feature level 97 and then made mandatory, but nullable, in feature level 113).
Sourcepub fn unset_still_url(&mut self) -> Option<String>
pub fn unset_still_url(&mut self) -> Option<String>
Unsets the RealmEmoji still_url.
Only non-null when the emoji’s image is animated.
The path relative to the organization’s URL where a still (not animated) version of the emoji can be found.
(This is currently always the first frame of the animation).
This is useful for clients to display the emoji in contexts where continuously animating it would be a bad user experience (e.g. because it would be distracting).
Changes: New in Zulip 5.0 (added as optional field in feature level 97 and then made mandatory, but nullable, in feature level 113).
Sourcepub fn with_still_url<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_still_url<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the RealmEmoji still_url.
Only non-null when the emoji’s image is animated.
The path relative to the organization’s URL where a still (not animated) version of the emoji can be found.
(This is currently always the first frame of the animation).
This is useful for clients to display the emoji in contexts where continuously animating it would be a bad user experience (e.g. because it would be distracting).
Changes: New in Zulip 5.0 (added as optional field in feature level 97 and then made mandatory, but nullable, in feature level 113).
Source§impl RealmEmoji
impl RealmEmoji
Sourcepub const fn deactivated(&self) -> Option<bool>
pub const fn deactivated(&self) -> Option<bool>
Gets the RealmEmoji deactivated.
Whether the emoji has been deactivated or not.
Sourcepub fn set_deactivated(&mut self, val: bool)
pub fn set_deactivated(&mut self, val: bool)
Sets the RealmEmoji deactivated.
Whether the emoji has been deactivated or not.
Sourcepub fn unset_deactivated(&mut self) -> Option<bool>
pub fn unset_deactivated(&mut self) -> Option<bool>
Unsets the RealmEmoji deactivated.
Whether the emoji has been deactivated or not.
Sourcepub fn with_deactivated(self, val: bool) -> Self
pub fn with_deactivated(self, val: bool) -> Self
Builder function that sets the RealmEmoji deactivated.
Whether the emoji has been deactivated or not.
Gets the RealmEmoji author_id.
The user ID of the user who uploaded the custom emoji.
Will be null if the uploader is unknown.
Changes: New in Zulip 3.0 (feature level 7). Previously was accessible via an author object with an id field.
Sets the RealmEmoji author_id.
The user ID of the user who uploaded the custom emoji.
Will be null if the uploader is unknown.
Changes: New in Zulip 3.0 (feature level 7). Previously was accessible via an author object with an id field.
Unsets the RealmEmoji author_id.
The user ID of the user who uploaded the custom emoji.
Will be null if the uploader is unknown.
Changes: New in Zulip 3.0 (feature level 7). Previously was accessible via an author object with an id field.
Builder function that sets the RealmEmoji author_id.
The user ID of the user who uploaded the custom emoji.
Will be null if the uploader is unknown.
Changes: New in Zulip 3.0 (feature level 7). Previously was accessible via an author object with an id field.