pub struct TransLeaf {
pub path: String,
pub group: String,
pub part: &'static str,
pub n: usize,
pub text: String,
}Expand description
One translatable text leaf in a form, for the per-locale editor.
Fields§
§path: StringStable cms_snippet_translation.field_path key (id-based).
group: StringThe field the text belongs to (its label, or its key when it has none); empty for form-wide texts. The editor groups rows by it.
part: &'static strWhich text of the group this is: submit, success, page,
section, label, help, ph, content or opt. The editor
maps it to a translated row label.
n: usize1-based option number for opt; 0 otherwise.
text: StringCanonical (default-locale) text.
Trait Implementations§
impl StructuralPartialEq for TransLeaf
Auto Trait Implementations§
impl Freeze for TransLeaf
impl RefUnwindSafe for TransLeaf
impl Send for TransLeaf
impl Sync for TransLeaf
impl Unpin for TransLeaf
impl UnsafeUnpin for TransLeaf
impl UnwindSafe for TransLeaf
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,
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 moreCreates a shared type from an unshared type.