Skip to main content

MaterialStrings

Struct MaterialStrings 

Source
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).

§breadcrumb: Arc<str>

Accessible label for breadcrumb navigation landmarks (defaults to "Breadcrumb", e.g. Breadcrumbs).

§more_breadcrumbs: Arc<str>

Accessible label for collapsed breadcrumb overflow triggers (defaults to "More breadcrumbs", e.g. Breadcrumbs).

§navigation: Arc<str>

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

Source

pub fn dismiss(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn dismiss_message(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn dismiss_overlay(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn close(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn close_actions(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn cancel(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn confirm(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn clear(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn show_password(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn hide_password(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn open_options(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn close_options(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn no_matching_options(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn more_actions(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn app_bar_actions(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn bottom_app_bar(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn breadcrumb(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn more_breadcrumbs(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn navigation(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn steps(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn refresh(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn resize_bottom_sheet(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn expand(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn collapse(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn drop_target(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn drop_files_here(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn searching(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn no_results(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn search_prompt(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn minimize(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn maximize(self, value: impl Into<Arc<str>>) -> Self

Source

pub fn restore(self, value: impl Into<Arc<str>>) -> Self

Trait Implementations§

Source§

impl Clone for MaterialStrings

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MaterialStrings

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for MaterialStrings

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for MaterialStrings

Available on crate feature serde only.
Source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for MaterialStrings

Source§

impl PartialEq for MaterialStrings

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for MaterialStrings

Available on crate feature serde only.
Source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for MaterialStrings

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.