pub struct PlainTextInputElement {
pub action_id: Option<String>,
pub initial_value: Option<String>,
pub multiline: Option<bool>,
pub min_length: Option<u32>,
pub max_length: Option<u32>,
pub dispatch_action_config: Option<DispatchActionConfig>,
pub focus_on_load: Option<bool>,
pub placeholder: Option<TextObject>,
/* private fields */
}Expand description
Fields§
§action_id: Option<String>§initial_value: Option<String>§multiline: Option<bool>§min_length: Option<u32>§max_length: Option<u32>§dispatch_action_config: Option<DispatchActionConfig>§focus_on_load: Option<bool>§placeholder: Option<TextObject>Implementations§
Source§impl PlainTextInputElement
impl PlainTextInputElement
pub fn new() -> Self
pub fn action_id(self, action_id: impl Into<String>) -> Self
pub fn initial_value(self, initial_value: impl Into<String>) -> Self
pub fn multiline(self, multiline: bool) -> Self
pub fn min_length(self, min_length: u32) -> Self
pub fn max_length(self, max_length: u32) -> Self
pub fn dispatch_action_config( self, dispatch_action_config: DispatchActionConfig, ) -> Self
pub fn focus_on_load(self, focus_on_load: bool) -> Self
pub fn placeholder(self, placeholder: impl Into<TextObject>) -> Self
Trait Implementations§
Source§impl Clone for PlainTextInputElement
impl Clone for PlainTextInputElement
Source§impl Debug for PlainTextInputElement
impl Debug for PlainTextInputElement
Source§impl Default for PlainTextInputElement
impl Default for PlainTextInputElement
Source§impl<'de> Deserialize<'de> for PlainTextInputElement
impl<'de> Deserialize<'de> for PlainTextInputElement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PlainTextInputElement> for InputElement
impl From<PlainTextInputElement> for InputElement
Source§fn from(value: PlainTextInputElement) -> Self
fn from(value: PlainTextInputElement) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PlainTextInputElement
impl PartialEq for PlainTextInputElement
Source§impl Serialize for PlainTextInputElement
impl Serialize for PlainTextInputElement
impl StructuralPartialEq for PlainTextInputElement
Auto Trait Implementations§
impl Freeze for PlainTextInputElement
impl RefUnwindSafe for PlainTextInputElement
impl Send for PlainTextInputElement
impl Sync for PlainTextInputElement
impl Unpin for PlainTextInputElement
impl UnsafeUnpin for PlainTextInputElement
impl UnwindSafe for PlainTextInputElement
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