pub struct ProfileData { /* private fields */ }Expand description
Represents data about what value the user filled in the custom profile field with that ID.
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 ProfileData
impl ProfileData
Sourcepub const fn new() -> ProfileData
pub const fn new() -> ProfileData
Creates a new ProfileData.
Source§impl ProfileData
impl ProfileData
Sourcepub fn value(&self) -> Option<&str>
pub fn value(&self) -> Option<&str>
Gets the ProfileData value.
User’s personal value for this custom profile field.
Sourcepub fn set_value<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_value<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the ProfileData value.
User’s personal value for this custom profile field.
Sourcepub fn unset_value(&mut self) -> Option<String>
pub fn unset_value(&mut self) -> Option<String>
Unsets the ProfileData value.
User’s personal value for this custom profile field.
Sourcepub fn with_value<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_value<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the ProfileData value.
User’s personal value for this custom profile field.
Sourcepub fn rendered_value(&self) -> Option<&str>
pub fn rendered_value(&self) -> Option<&str>
Gets the ProfileData rendered_value.
The value rendered in HTML.
Will only be present for custom profile field types that support Markdown rendering.
This user-generated HTML content should be rendered using the same CSS and client-side security protections as are used for message content.
See Markdown message formatting for details on Zulip’s HTML format.
Sourcepub fn set_rendered_value<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_rendered_value<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the ProfileData rendered_value.
The value rendered in HTML.
Will only be present for custom profile field types that support Markdown rendering.
This user-generated HTML content should be rendered using the same CSS and client-side security protections as are used for message content.
See Markdown message formatting for details on Zulip’s HTML format.
Sourcepub fn unset_rendered_value(&mut self) -> Option<String>
pub fn unset_rendered_value(&mut self) -> Option<String>
Unsets the ProfileData rendered_value.
The value rendered in HTML.
Will only be present for custom profile field types that support Markdown rendering.
This user-generated HTML content should be rendered using the same CSS and client-side security protections as are used for message content.
See Markdown message formatting for details on Zulip’s HTML format.
Sourcepub fn with_rendered_value<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_rendered_value<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the ProfileData rendered_value.
The value rendered in HTML.
Will only be present for custom profile field types that support Markdown rendering.
This user-generated HTML content should be rendered using the same CSS and client-side security protections as are used for message content.
See Markdown message formatting for details on Zulip’s HTML format.