pub struct MaterialStrings {Show 33 fields
pub dismiss: Arc<str>,
pub dismiss_message: Arc<str>,
pub dismiss_overlay: Arc<str>,
pub close: Arc<str>,
pub close_actions: Arc<str>,
pub close_search: Arc<str>,
pub cancel: Arc<str>,
pub confirm: Arc<str>,
pub clear: Arc<str>,
pub show_password: Arc<str>,
pub hide_password: Arc<str>,
pub open_options: Arc<str>,
pub close_options: Arc<str>,
pub no_matching_options: Arc<str>,
pub more_actions: Arc<str>,
pub app_bar_actions: Arc<str>,
pub bottom_app_bar: Arc<str>,
pub breadcrumb: Arc<str>,
pub more_breadcrumbs: Arc<str>,
pub navigation: Arc<str>,
pub steps: Arc<str>,
pub refresh: Arc<str>,
pub resize_bottom_sheet: Arc<str>,
pub expand: Arc<str>,
pub collapse: Arc<str>,
pub drop_target: Arc<str>,
pub drop_files_here: Arc<str>,
pub searching: Arc<str>,
pub no_results: Arc<str>,
pub search_prompt: Arc<str>,
pub minimize: Arc<str>,
pub maximize: Arc<str>,
pub restore: Arc<str>,
}Expand description
Pure-value table of built-in default labels and accessibility copy.
Uses shared Arc<str> storage (matching crate::FontFamilies) so cloning
and scoping strings across subtrees does not allocate on the heap.
All fields default to the library’s English labels so existing applications
behave unchanged until they install custom strings via
set_material_strings or ThemeScope::strings. Explicit per-component label
setters always take precedence over MaterialStrings.
Fields§
§dismiss: Arc<str>Generic dismiss label (defaults to "Dismiss", e.g. Banner).
dismiss_message: Arc<str>Accessible label for dismissing a notification message (defaults to "Dismiss message", e.g. Snackbar).
dismiss_overlay: Arc<str>Accessible label for clicking a modal backdrop scrim (defaults to "Dismiss overlay", e.g. Scrim).
close: Arc<str>Generic close label (defaults to "Close", e.g. Sheet, CaptionButtons).
close_actions: Arc<str>Accessible label for closing floating action menus (defaults to "Close actions", e.g. FabMenu).
close_search: Arc<str>Accessible label for closing search views (defaults to "Close search", e.g. SearchView).
cancel: Arc<str>Generic cancellation label (defaults to "Cancel", e.g. Dialog).
confirm: Arc<str>Generic confirmation label (defaults to "OK", e.g. DatePickerDialog, TimePickerDialog).
clear: Arc<str>Accessible label for clearing a text input (defaults to "Clear", e.g. TextField).
show_password: Arc<str>Accessible label for revealing masked password text (defaults to "Show password", e.g. TextField).
hide_password: Arc<str>Accessible label for hiding revealed password text (defaults to "Hide password", e.g. TextField).
open_options: Arc<str>Accessible label for opening dropdown options (defaults to "Open options", e.g. ExposedDropdown).
close_options: Arc<str>Accessible label for closing dropdown options (defaults to "Close options", e.g. ExposedDropdown).
no_matching_options: Arc<str>Empty-state message when a filterable dropdown has no matches (defaults to "No matching options", e.g. ExposedDropdown).
more_actions: Arc<str>Accessible label for overflow menu triggers (defaults to "More actions", e.g. AppBarRow, AppBarColumn, ButtonGroup, Toolbar).
app_bar_actions: Arc<str>Accessible label for app bar action strips (defaults to "App bar actions", e.g. AppBarRow, AppBarColumn).
bottom_app_bar: Arc<str>Accessible label for bottom app bar landmarks (defaults to "Bottom app bar", e.g. BottomAppBar).
Accessible label for breadcrumb navigation landmarks (defaults to "Breadcrumb", e.g. Breadcrumbs).
Accessible label for collapsed breadcrumb overflow triggers (defaults to "More breadcrumbs", e.g. Breadcrumbs).
Default navigation landmark and modal sheet title (defaults to "Navigation", e.g. NavigationRail).
steps: Arc<str>Accessible label for stepper containers (defaults to "Steps", e.g. Stepper).
refresh: Arc<str>Label for refresh actions and loading indicators (defaults to "Refresh", e.g. PullToRefresh).
resize_bottom_sheet: Arc<str>Accessible label for bottom sheet resize drag handles (defaults to "Resize bottom sheet", e.g. Sheet).
expand: Arc<str>Label for expanding a collapsible bottom sheet (defaults to "Expand", e.g. Sheet).
collapse: Arc<str>Label for collapsing an expanded bottom sheet (defaults to "Collapse", e.g. Sheet).
drop_target: Arc<str>Default accessible label for drop targets (defaults to "Drop target", e.g. DropTarget).
drop_files_here: Arc<str>Default prompt heading for drop targets (defaults to "Drop files here", e.g. DropTarget).
searching: Arc<str>Default loading status label for search views (defaults to "Searching", e.g. SearchView).
no_results: Arc<str>Default empty-result label for search views (defaults to "No results", e.g. SearchView).
search_prompt: Arc<str>Default idle prompt for search views (defaults to "Enter a search term", e.g. SearchView).
minimize: Arc<str>Accessible label for window minimize caption buttons (defaults to "Minimize", e.g. CaptionButtons).
maximize: Arc<str>Accessible label for window maximize caption buttons (defaults to "Maximize", e.g. CaptionButtons).
restore: Arc<str>Accessible label for window restore caption buttons (defaults to "Restore", e.g. CaptionButtons).
Implementations§
Source§impl MaterialStrings
impl MaterialStrings
Sourcepub fn dismiss_message(self, value: impl Into<Arc<str>>) -> Self
pub fn dismiss_message(self, value: impl Into<Arc<str>>) -> Self
Sets Self::dismiss_message.
Sourcepub fn dismiss_overlay(self, value: impl Into<Arc<str>>) -> Self
pub fn dismiss_overlay(self, value: impl Into<Arc<str>>) -> Self
Sets Self::dismiss_overlay.
Sourcepub fn close_actions(self, value: impl Into<Arc<str>>) -> Self
pub fn close_actions(self, value: impl Into<Arc<str>>) -> Self
Sets Self::close_actions.
Sourcepub fn close_search(self, value: impl Into<Arc<str>>) -> Self
pub fn close_search(self, value: impl Into<Arc<str>>) -> Self
Sets Self::close_search.
Sourcepub fn show_password(self, value: impl Into<Arc<str>>) -> Self
pub fn show_password(self, value: impl Into<Arc<str>>) -> Self
Sets Self::show_password.
Sourcepub fn hide_password(self, value: impl Into<Arc<str>>) -> Self
pub fn hide_password(self, value: impl Into<Arc<str>>) -> Self
Sets Self::hide_password.
Sourcepub fn open_options(self, value: impl Into<Arc<str>>) -> Self
pub fn open_options(self, value: impl Into<Arc<str>>) -> Self
Sets Self::open_options.
Sourcepub fn close_options(self, value: impl Into<Arc<str>>) -> Self
pub fn close_options(self, value: impl Into<Arc<str>>) -> Self
Sets Self::close_options.
Sourcepub fn no_matching_options(self, value: impl Into<Arc<str>>) -> Self
pub fn no_matching_options(self, value: impl Into<Arc<str>>) -> Self
Sourcepub fn more_actions(self, value: impl Into<Arc<str>>) -> Self
pub fn more_actions(self, value: impl Into<Arc<str>>) -> Self
Sets Self::more_actions.
Sourcepub fn app_bar_actions(self, value: impl Into<Arc<str>>) -> Self
pub fn app_bar_actions(self, value: impl Into<Arc<str>>) -> Self
Sets Self::app_bar_actions.
Sourcepub fn bottom_app_bar(self, value: impl Into<Arc<str>>) -> Self
pub fn bottom_app_bar(self, value: impl Into<Arc<str>>) -> Self
Sets Self::bottom_app_bar.
Sets Self::breadcrumb.
Sets Self::more_breadcrumbs.
Sets Self::navigation.
Sourcepub fn resize_bottom_sheet(self, value: impl Into<Arc<str>>) -> Self
pub fn resize_bottom_sheet(self, value: impl Into<Arc<str>>) -> Self
Sourcepub fn drop_target(self, value: impl Into<Arc<str>>) -> Self
pub fn drop_target(self, value: impl Into<Arc<str>>) -> Self
Sets Self::drop_target.
Sourcepub fn drop_files_here(self, value: impl Into<Arc<str>>) -> Self
pub fn drop_files_here(self, value: impl Into<Arc<str>>) -> Self
Sets Self::drop_files_here.
Sourcepub fn no_results(self, value: impl Into<Arc<str>>) -> Self
pub fn no_results(self, value: impl Into<Arc<str>>) -> Self
Sets Self::no_results.
Sourcepub fn search_prompt(self, value: impl Into<Arc<str>>) -> Self
pub fn search_prompt(self, value: impl Into<Arc<str>>) -> Self
Sets Self::search_prompt.
Trait Implementations§
Source§impl Clone for MaterialStrings
impl Clone for MaterialStrings
Source§impl Debug for MaterialStrings
impl Debug for MaterialStrings
Source§impl Default for MaterialStrings
impl Default for MaterialStrings
Source§impl<'de> Deserialize<'de> for MaterialStrings
Available on crate feature serde only.
impl<'de> Deserialize<'de> for MaterialStrings
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
impl Eq for MaterialStrings
Source§impl PartialEq for MaterialStrings
impl PartialEq for MaterialStrings
Source§impl Serialize for MaterialStrings
Available on crate feature serde only.
impl Serialize for MaterialStrings
serde only.impl StructuralPartialEq for MaterialStrings
Auto Trait Implementations§
impl Forget for MaterialStrings
impl Freeze for MaterialStrings
impl Move for MaterialStrings
impl RefUnwindSafe for MaterialStrings
impl Send for MaterialStrings
impl Sync for MaterialStrings
impl Unpin for MaterialStrings
impl UnsafeUnpin for MaterialStrings
impl UnwindSafe for MaterialStrings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.