pub struct NavigationView { /* private fields */ }Expand description
Represents a user’s personal configuration for a specific navigation view.
Displayed most visibly at the top of the web application’s left sidebar.
Navigation views can be either an override to the default behavior of a built-in view, or a custom view.
Changes: New in Zulip 11.0 (feature level 390).
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§
Sourcepub fn fragment(&self) -> &str
pub fn fragment(&self) -> &str
Gets the NavigationView fragment.
A unique identifier for the view, used to determine navigation behavior when clicked.
Clients should use this value to navigate to the corresponding URL hash.
Sourcepub fn set_fragment<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_fragment<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the NavigationView fragment.
A unique identifier for the view, used to determine navigation behavior when clicked.
Clients should use this value to navigate to the corresponding URL hash.
Sourcepub fn with_fragment<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_fragment<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the NavigationView fragment.
A unique identifier for the view, used to determine navigation behavior when clicked.
Clients should use this value to navigate to the corresponding URL hash.
Sourcepub const fn is_pinned(&self) -> bool
pub const fn is_pinned(&self) -> bool
Gets the NavigationView is_pinned.
Determines whether the view appears directly in the sidebar or is hidden in the "More Views" menu.
-
true: Pinned and visible in the sidebar. -
false: Hidden and accessible via the "More Views" menu.
Sourcepub fn set_is_pinned(&mut self, val: bool)
pub fn set_is_pinned(&mut self, val: bool)
Sets the NavigationView is_pinned.
Determines whether the view appears directly in the sidebar or is hidden in the "More Views" menu.
-
true: Pinned and visible in the sidebar. -
false: Hidden and accessible via the "More Views" menu.
Sourcepub fn with_is_pinned(self, val: bool) -> Self
pub fn with_is_pinned(self, val: bool) -> Self
Builder function that sets the NavigationView is_pinned.
Determines whether the view appears directly in the sidebar or is hidden in the "More Views" menu.
-
true: Pinned and visible in the sidebar. -
false: Hidden and accessible via the "More Views" menu.
Sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
Gets the NavigationView name.
The user-facing name for custom navigation views.
Omit this field for built-in views.
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 NavigationView name.
The user-facing name for custom navigation views.
Omit this field for built-in views.
Sourcepub fn unset_name(&mut self) -> Option<String>
pub fn unset_name(&mut self) -> Option<String>
Unsets the NavigationView name.
The user-facing name for custom navigation views.
Omit this field for built-in views.
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new NavigationView.