pub struct InlineEditLabels {
pub edit: Option<String>,
pub save: Option<String>,
pub cancel: Option<String>,
pub saved: Option<String>,
}Expand description
Text of an InlineEdit. Unset or blank fields keep the English default, and {label}
becomes the field label, like resolveLumenInlineEditLabels in lumen-core.
Fields§
§edit: Option<String>Edit button text, also its accessible name. Default: “Edit {label}”.
save: Option<String>Save button text. Default: “Save”.
cancel: Option<String>Cancel button text. Default: “Cancel”.
saved: Option<String>Polite announcement after a saved change. Default: “{label} saved.”
Trait Implementations§
Source§impl Clone for InlineEditLabels
impl Clone for InlineEditLabels
Source§impl Debug for InlineEditLabels
impl Debug for InlineEditLabels
Source§impl Default for InlineEditLabels
impl Default for InlineEditLabels
impl Eq for InlineEditLabels
Source§impl PartialEq for InlineEditLabels
impl PartialEq for InlineEditLabels
impl StructuralPartialEq for InlineEditLabels
Auto Trait Implementations§
impl Forget for InlineEditLabels
impl Freeze for InlineEditLabels
impl Move for InlineEditLabels
impl RefUnwindSafe for InlineEditLabels
impl Send for InlineEditLabelswhere
RawVecInner: Send,
impl Sync for InlineEditLabelswhere
RawVecInner: Sync,
impl Unpin for InlineEditLabels
impl UnsafeUnpin for InlineEditLabels
impl UnwindSafe for InlineEditLabelswhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DependencyElement for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.