pub struct CodePreviewPropsBuilder {
pub id: Option<Option<FocusId>>,
pub value: Option<Option<String>>,
pub code: Option<Option<String>>,
pub language: Option<Option<String>>,
pub theme: Option<Option<String>>,
pub show_line_numbers: Option<bool>,
pub width: Option<Dimension>,
pub height: Option<Dimension>,
pub border: Option<BorderStyle>,
pub border_color: Option<Option<Color>>,
pub title: Option<Option<String>>,
pub tab_size: Option<usize>,
}Fields§
§id: Option<Option<FocusId>>§value: Option<Option<String>>§code: Option<Option<String>>§language: Option<Option<String>>§theme: Option<Option<String>>§show_line_numbers: Option<bool>§width: Option<Dimension>§height: Option<Dimension>§border: Option<BorderStyle>§border_color: Option<Option<Color>>§title: Option<Option<String>>§tab_size: Option<usize>Implementations§
Source§impl CodePreviewPropsBuilder
impl CodePreviewPropsBuilder
pub fn id(self, val: impl IntoPropOption<FocusId>) -> Self
pub fn value(self, val: impl IntoPropOption<String>) -> Self
pub fn code(self, val: impl IntoPropOption<String>) -> Self
pub fn language(self, val: impl IntoPropOption<String>) -> Self
pub fn theme(self, val: impl IntoPropOption<String>) -> Self
pub fn show_line_numbers(self, val: bool) -> Self
pub fn width(self, val: impl IntoDimension) -> Self
pub fn height(self, val: impl IntoDimension) -> Self
pub fn border(self, val: impl Into<BorderStyle>) -> Self
pub fn border_color(self, val: impl IntoPropOption<Color>) -> Self
pub fn title(self, val: impl IntoPropOption<String>) -> Self
pub fn tab_size(self, val: usize) -> Self
pub fn build(self) -> CodePreviewProps
Trait Implementations§
Auto Trait Implementations§
impl Forget for CodePreviewPropsBuilder
impl Freeze for CodePreviewPropsBuilder
impl RefUnwindSafe for CodePreviewPropsBuilder
impl Send for CodePreviewPropsBuilder
impl Sync for CodePreviewPropsBuilder
impl Unpin for CodePreviewPropsBuilder
impl UnsafeUnpin for CodePreviewPropsBuilder
impl UnwindSafe for CodePreviewPropsBuilder
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