#[non_exhaustive]pub struct PaneWords {
pub new_title: String,
pub edit_title: String,
pub add: String,
pub save_changes: String,
pub cancel: String,
pub edit_row: String,
pub delete_row: String,
pub delete_question: String,
pub delete_detail: String,
pub delete_answer: String,
}Expand description
What a pane says about its records.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.new_title: StringOver the form of a new record.
edit_title: StringOver the form of a record being changed.
add: StringThe button that keeps a new record.
save_changes: StringThe button that keeps changes.
cancel: StringThe button that gives up on changes.
edit_row: StringThe button of a row that opens its form, before the record’s name.
delete_row: StringThe button of a row that takes it away, before the record’s name.
delete_question: StringThe question before taking it away.
delete_detail: StringWhat taking it away does.
delete_answer: StringThe answer that takes it away.
Implementations§
Source§impl PaneWords
impl PaneWords
Sourcepub fn new(
new_title: impl Into<String>,
edit_title: impl Into<String>,
add: impl Into<String>,
delete_question: impl Into<String>,
delete_detail: impl Into<String>,
delete_answer: impl Into<String>,
) -> Self
pub fn new( new_title: impl Into<String>, edit_title: impl Into<String>, add: impl Into<String>, delete_question: impl Into<String>, delete_detail: impl Into<String>, delete_answer: impl Into<String>, ) -> Self
What a pane says about its records, in Brazilian Portuguese where it does not say otherwise.
Sourcepub fn with_texts(self, texts: &Texts) -> Self
pub fn with_texts(self, texts: &Texts) -> Self
The words that are the same for every pane, from a catalog of texts in its language.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PaneWords
impl RefUnwindSafe for PaneWords
impl Send for PaneWords
impl Sync for PaneWords
impl Unpin for PaneWords
impl UnsafeUnpin for PaneWords
impl UnwindSafe for PaneWords
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