#[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() -> ShellLabels
pub fn back(self, l: impl Into<String>) -> ShellLabels
pub fn load_more(self, l: impl Into<String>) -> ShellLabels
pub fn refresh(self, l: impl Into<String>) -> ShellLabels
pub fn ok(self, l: impl Into<String>) -> ShellLabels
pub fn cancel(self, l: impl Into<String>) -> ShellLabels
pub fn done(self, l: impl Into<String>) -> ShellLabels
Trait Implementations§
Source§impl Clone for ShellLabels
impl Clone for ShellLabels
Source§fn clone(&self) -> ShellLabels
fn clone(&self) -> ShellLabels
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShellLabels
impl Debug for ShellLabels
Source§impl Default for ShellLabels
impl Default for ShellLabels
Source§fn default() -> ShellLabels
fn default() -> ShellLabels
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ShellLabels
impl<'de> Deserialize<'de> for ShellLabels
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ShellLabels, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ShellLabels, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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