#[non_exhaustive]pub struct Text {
pub en_text: String,
pub localized_text: String,
pub localization_state: LocalizationState,
/* private fields */
}Expand description
A text object containing the English text and its localized copies.
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.en_text: StringThe English copy.
localized_text: StringThe requested localized copy (if applicable).
localization_state: LocalizationStateStatus of the localization.
Implementations§
Source§impl Text
impl Text
Sourcepub fn set_en_text<T: Into<String>>(self, v: T) -> Self
pub fn set_en_text<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_localized_text<T: Into<String>>(self, v: T) -> Self
pub fn set_localized_text<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_localization_state<T: Into<LocalizationState>>(self, v: T) -> Self
pub fn set_localization_state<T: Into<LocalizationState>>(self, v: T) -> Self
Sets the value of localization_state.
§Example
ⓘ
use google_cloud_advisorynotifications_v1::model::LocalizationState;
let x0 = Text::new().set_localization_state(LocalizationState::NotApplicable);
let x1 = Text::new().set_localization_state(LocalizationState::Pending);
let x2 = Text::new().set_localization_state(LocalizationState::Completed);Trait Implementations§
impl StructuralPartialEq for Text
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnsafeUnpin for Text
impl UnwindSafe for Text
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