pub struct Password(/* private fields */);Expand description
密码参数 Builder;默认标记 secret 且不投影为可读字段。
Implementations§
Source§impl Password
impl Password
Sourcepub fn widget(self, value: WidgetHint) -> Self
pub fn widget(self, value: WidgetHint) -> Self
设置前端控件提示;不改变密码字段的 secret 访问语义。
Sourcepub fn min_length(self, value: usize) -> Self
pub fn min_length(self, value: usize) -> Self
设置最小长度。
Sourcepub fn max_length(self, value: usize) -> Self
pub fn max_length(self, value: usize) -> Self
设置最大长度。
Trait Implementations§
Source§impl IntoFieldSpec for Password
impl IntoFieldSpec for Password
Source§fn into_field_spec(self, name: FieldName) -> FieldSpec
fn into_field_spec(self, name: FieldName) -> FieldSpec
绑定字段名并生成唯一原生定义。
Auto Trait Implementations§
impl Forget for Password
impl Freeze for Password
impl Move for Password
impl RefUnwindSafe for Password
impl Send for Password
impl Sync for Password
impl Unpin for Password
impl UnsafeUnpin for Password
impl UnwindSafe for Password
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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