pub struct GiphyRatingOption {
pub name: Option<String>,
pub id: Option<u64>,
}Expand description
Represents the details of the rating with the name of the rating as the key.
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.
Fields§
§name: Option<String>§id: Option<u64>Implementations§
Source§impl GiphyRatingOption
impl GiphyRatingOption
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new GiphyRatingOption.
Source§impl GiphyRatingOption
impl GiphyRatingOption
Sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
Gets the GiphyRatingOption name.
The description of the rating option.
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 GiphyRatingOption name.
The description of the rating option.
Sourcepub fn unset_name(&mut self) -> Option<String>
pub fn unset_name(&mut self) -> Option<String>
Unsets the GiphyRatingOption name.
The description of the rating option.
Source§impl GiphyRatingOption
impl GiphyRatingOption
Sourcepub const fn id(&self) -> Option<u64>
pub const fn id(&self) -> Option<u64>
Gets the GiphyRatingOption id.
The ID of the rating option.
Sourcepub fn set_id(&mut self, val: u64)
pub fn set_id(&mut self, val: u64)
Sets the GiphyRatingOption id.
The ID of the rating option.
Sourcepub fn unset_id(&mut self) -> Option<u64>
pub fn unset_id(&mut self) -> Option<u64>
Unsets the GiphyRatingOption id.
The ID of the rating option.
Sourcepub fn with_id(self, val: u64) -> Self
pub fn with_id(self, val: u64) -> Self
Builder function that sets the GiphyRatingOption id.
The ID of the rating option.