pub struct SearchProps {
pub text: String,
pub placeholder: String,
}Expand description
Full props (realize). text seeds the control; placeholder is the empty-state prompt. Only
text changes after build (via SearchPatch::SetText); the placeholder is fixed at build.
Fields§
§text: String§placeholder: StringTrait Implementations§
Source§impl Clone for SearchProps
impl Clone for SearchProps
Source§fn clone(&self) -> SearchProps
fn clone(&self) -> SearchProps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SearchProps
impl Debug for SearchProps
Source§impl Default for SearchProps
impl Default for SearchProps
Source§fn default() -> SearchProps
fn default() -> SearchProps
Returns the “default value” for a type. Read more
Source§impl PartialEq for SearchProps
impl PartialEq for SearchProps
Source§fn eq(&self, other: &SearchProps) -> bool
fn eq(&self, other: &SearchProps) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SearchProps
Auto Trait Implementations§
impl Freeze for SearchProps
impl RefUnwindSafe for SearchProps
impl Send for SearchProps
impl Sync for SearchProps
impl Unpin for SearchProps
impl UnsafeUnpin for SearchProps
impl UnwindSafe for SearchProps
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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> 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