#[repr(C)]pub struct ShellLabels {
pub back: Option<String>,
pub load_more: Option<String>,
pub refresh: Option<String>,
pub ok: Option<String>,
pub cancel: Option<String>,
pub done: Option<String>,
}Expand description
Text the shells draw themselves (back buttons, web list controls, dialog/picker defaults), in the
app’s language. Set once on the scaffold with with_labels; every field is optional and falls
back to the shell’s built-in English. A label passed to a specific call (confirm_with,
Picker) still wins over these.
Fields§
§back: Option<String>Split back-button text on every shell; the Scaffold back button’s accessible name.
load_more: Option<String>Web LazyList “Load more” button.
refresh: Option<String>Web LazyList refresh button (shown after a ↻) and the web scaffold refresh button’s name.
ok: Option<String>Confirm dialog: the confirming button when the call gives no label.
cancel: Option<String>Confirm dialog and pickers: the dismissing button when the call gives no label.
done: Option<String>Pickers: the accepting button when the call gives no label.
Implementations§
Source§impl ShellLabels
impl ShellLabels
pub fn new() -> Self
pub fn back(self, l: impl Into<String>) -> Self
pub fn load_more(self, l: impl Into<String>) -> Self
pub fn refresh(self, l: impl Into<String>) -> Self
pub fn ok(self, l: impl Into<String>) -> Self
pub fn cancel(self, l: impl Into<String>) -> Self
pub fn done(self, l: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ShellLabels
impl Clone for ShellLabels
Source§impl Debug for ShellLabels
impl Debug for ShellLabels
Source§impl Default for ShellLabels
impl Default for ShellLabels
Source§impl<'de> Deserialize<'de> for ShellLabels
impl<'de> Deserialize<'de> for ShellLabels
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ShellLabels
Source§impl<'ʄ> Facet<'ʄ> for ShellLabels
impl<'ʄ> Facet<'ʄ> for ShellLabels
Source§impl PartialEq for ShellLabels
impl PartialEq for ShellLabels
Source§impl Serialize for ShellLabels
impl Serialize for ShellLabels
impl StructuralPartialEq for ShellLabels
Auto Trait Implementations§
impl Freeze for ShellLabels
impl RefUnwindSafe for ShellLabels
impl Send for ShellLabels
impl Sync for ShellLabels
impl Unpin for ShellLabels
impl UnsafeUnpin for ShellLabels
impl UnwindSafe for ShellLabels
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
Mutably borrows from an owned value. Read more