pub struct SavedSnippet { /* private fields */ }Expand description
Represents details of the saved snippet.
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 SavedSnippet
impl SavedSnippet
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new SavedSnippet.
Source§impl SavedSnippet
impl SavedSnippet
Sourcepub const fn id(&self) -> Option<u64>
pub const fn id(&self) -> Option<u64>
Gets the SavedSnippet id.
The unique ID of the saved snippet.
Sourcepub fn set_id(&mut self, val: u64)
pub fn set_id(&mut self, val: u64)
Sets the SavedSnippet id.
The unique ID of the saved snippet.
Sourcepub fn unset_id(&mut self) -> Option<u64>
pub fn unset_id(&mut self) -> Option<u64>
Unsets the SavedSnippet id.
The unique ID of the saved snippet.
Sourcepub fn with_id(self, val: u64) -> Self
pub fn with_id(self, val: u64) -> Self
Builder function that sets the SavedSnippet id.
The unique ID of the saved snippet.
Sourcepub const fn date_created(&self) -> Option<u64>
pub const fn date_created(&self) -> Option<u64>
Gets the SavedSnippet date_created.
The UNIX timestamp for when the saved snippet was created, in UTC seconds.
Sourcepub fn set_date_created(&mut self, val: u64)
pub fn set_date_created(&mut self, val: u64)
Sets the SavedSnippet date_created.
The UNIX timestamp for when the saved snippet was created, in UTC seconds.
Sourcepub fn unset_date_created(&mut self) -> Option<u64>
pub fn unset_date_created(&mut self) -> Option<u64>
Unsets the SavedSnippet date_created.
The UNIX timestamp for when the saved snippet was created, in UTC seconds.
Sourcepub fn with_date_created(self, val: u64) -> Self
pub fn with_date_created(self, val: u64) -> Self
Builder function that sets the SavedSnippet date_created.
The UNIX timestamp for when the saved snippet was created, in UTC seconds.
Source§impl SavedSnippet
impl SavedSnippet
Sourcepub fn title(&self) -> Option<&str>
pub fn title(&self) -> Option<&str>
Gets the SavedSnippet title.
The title of the saved snippet.
Sourcepub fn set_title<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_title<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the SavedSnippet title.
The title of the saved snippet.
Sourcepub fn unset_title(&mut self) -> Option<String>
pub fn unset_title(&mut self) -> Option<String>
Unsets the SavedSnippet title.
The title of the saved snippet.
Sourcepub fn with_title<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_title<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the SavedSnippet title.
The title of the saved snippet.
Sourcepub fn content(&self) -> Option<&str>
pub fn content(&self) -> Option<&str>
Gets the SavedSnippet content.
The content of the saved snippet in Zulip-flavored Markdown format.
Clients should insert this content into a message when using a saved snippet.
Sourcepub fn set_content<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_content<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the SavedSnippet content.
The content of the saved snippet in Zulip-flavored Markdown format.
Clients should insert this content into a message when using a saved snippet.
Sourcepub fn unset_content(&mut self) -> Option<String>
pub fn unset_content(&mut self) -> Option<String>
Unsets the SavedSnippet content.
The content of the saved snippet in Zulip-flavored Markdown format.
Clients should insert this content into a message when using a saved snippet.
Sourcepub fn with_content<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_content<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the SavedSnippet content.
The content of the saved snippet in Zulip-flavored Markdown format.
Clients should insert this content into a message when using a saved snippet.