pub struct TextSampleEntryBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> TextSampleEntryBuilder<S>
impl<S: State> TextSampleEntryBuilder<S>
Sourcepub fn build(self) -> TextSampleEntrywhere
S: IsComplete,
pub fn build(self) -> TextSampleEntrywhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn display_flags(
self,
value: DisplayFlags,
) -> TextSampleEntryBuilder<SetDisplayFlags<S>>where
S::DisplayFlags: IsUnset,
pub fn display_flags(
self,
value: DisplayFlags,
) -> TextSampleEntryBuilder<SetDisplayFlags<S>>where
S::DisplayFlags: IsUnset,
Sourcepub fn maybe_display_flags(
self,
value: Option<DisplayFlags>,
) -> TextSampleEntryBuilder<SetDisplayFlags<S>>where
S::DisplayFlags: IsUnset,
pub fn maybe_display_flags(
self,
value: Option<DisplayFlags>,
) -> TextSampleEntryBuilder<SetDisplayFlags<S>>where
S::DisplayFlags: IsUnset,
Sourcepub fn text_justification(
self,
value: TextJustification,
) -> TextSampleEntryBuilder<SetTextJustification<S>>where
S::TextJustification: IsUnset,
pub fn text_justification(
self,
value: TextJustification,
) -> TextSampleEntryBuilder<SetTextJustification<S>>where
S::TextJustification: IsUnset,
Sourcepub fn maybe_text_justification(
self,
value: Option<TextJustification>,
) -> TextSampleEntryBuilder<SetTextJustification<S>>where
S::TextJustification: IsUnset,
pub fn maybe_text_justification(
self,
value: Option<TextJustification>,
) -> TextSampleEntryBuilder<SetTextJustification<S>>where
S::TextJustification: IsUnset,
Sourcepub fn background_color(
self,
value: ColorRgb,
) -> TextSampleEntryBuilder<SetBackgroundColor<S>>where
S::BackgroundColor: IsUnset,
pub fn background_color(
self,
value: ColorRgb,
) -> TextSampleEntryBuilder<SetBackgroundColor<S>>where
S::BackgroundColor: IsUnset,
Sourcepub fn maybe_background_color(
self,
value: Option<ColorRgb>,
) -> TextSampleEntryBuilder<SetBackgroundColor<S>>where
S::BackgroundColor: IsUnset,
pub fn maybe_background_color(
self,
value: Option<ColorRgb>,
) -> TextSampleEntryBuilder<SetBackgroundColor<S>>where
S::BackgroundColor: IsUnset,
Sourcepub fn default_text_box(
self,
value: TextBox,
) -> TextSampleEntryBuilder<SetDefaultTextBox<S>>where
S::DefaultTextBox: IsUnset,
pub fn default_text_box(
self,
value: TextBox,
) -> TextSampleEntryBuilder<SetDefaultTextBox<S>>where
S::DefaultTextBox: IsUnset,
Sourcepub fn maybe_default_text_box(
self,
value: Option<TextBox>,
) -> TextSampleEntryBuilder<SetDefaultTextBox<S>>where
S::DefaultTextBox: IsUnset,
pub fn maybe_default_text_box(
self,
value: Option<TextBox>,
) -> TextSampleEntryBuilder<SetDefaultTextBox<S>>where
S::DefaultTextBox: IsUnset,
Sourcepub fn font_number(self, value: u16) -> TextSampleEntryBuilder<SetFontNumber<S>>where
S::FontNumber: IsUnset,
pub fn font_number(self, value: u16) -> TextSampleEntryBuilder<SetFontNumber<S>>where
S::FontNumber: IsUnset,
Sourcepub fn maybe_font_number(
self,
value: Option<u16>,
) -> TextSampleEntryBuilder<SetFontNumber<S>>where
S::FontNumber: IsUnset,
pub fn maybe_font_number(
self,
value: Option<u16>,
) -> TextSampleEntryBuilder<SetFontNumber<S>>where
S::FontNumber: IsUnset,
Sourcepub fn font_face(
self,
value: FontFace,
) -> TextSampleEntryBuilder<SetFontFace<S>>where
S::FontFace: IsUnset,
pub fn font_face(
self,
value: FontFace,
) -> TextSampleEntryBuilder<SetFontFace<S>>where
S::FontFace: IsUnset,
Sourcepub fn maybe_font_face(
self,
value: Option<FontFace>,
) -> TextSampleEntryBuilder<SetFontFace<S>>where
S::FontFace: IsUnset,
pub fn maybe_font_face(
self,
value: Option<FontFace>,
) -> TextSampleEntryBuilder<SetFontFace<S>>where
S::FontFace: IsUnset,
Sourcepub fn foreground_color(
self,
value: ColorRgb,
) -> TextSampleEntryBuilder<SetForegroundColor<S>>where
S::ForegroundColor: IsUnset,
pub fn foreground_color(
self,
value: ColorRgb,
) -> TextSampleEntryBuilder<SetForegroundColor<S>>where
S::ForegroundColor: IsUnset,
Sourcepub fn maybe_foreground_color(
self,
value: Option<ColorRgb>,
) -> TextSampleEntryBuilder<SetForegroundColor<S>>where
S::ForegroundColor: IsUnset,
pub fn maybe_foreground_color(
self,
value: Option<ColorRgb>,
) -> TextSampleEntryBuilder<SetForegroundColor<S>>where
S::ForegroundColor: IsUnset,
Sourcepub fn font_name(
self,
value: impl Into<String>,
) -> TextSampleEntryBuilder<SetFontName<S>>where
S::FontName: IsUnset,
pub fn font_name(
self,
value: impl Into<String>,
) -> TextSampleEntryBuilder<SetFontName<S>>where
S::FontName: IsUnset,
Required.
Sourcepub fn extensions(
self,
value: Vec<StsdExtension>,
) -> TextSampleEntryBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
pub fn extensions(
self,
value: Vec<StsdExtension>,
) -> TextSampleEntryBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
Sourcepub fn maybe_extensions(
self,
value: Option<Vec<StsdExtension>>,
) -> TextSampleEntryBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
pub fn maybe_extensions(
self,
value: Option<Vec<StsdExtension>>,
) -> TextSampleEntryBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for TextSampleEntryBuilder<S>
impl<S> RefUnwindSafe for TextSampleEntryBuilder<S>
impl<S> Send for TextSampleEntryBuilder<S>
impl<S> Sync for TextSampleEntryBuilder<S>
impl<S> Unpin for TextSampleEntryBuilder<S>
impl<S> UnsafeUnpin for TextSampleEntryBuilder<S>
impl<S> UnwindSafe for TextSampleEntryBuilder<S>
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> 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 more