pub enum FaceFieldRole {
Required,
Derived,
ReadOnly,
Optional,
Conditional,
}Expand description
Field role shown next to each label in the field guide. 字段指南中标签旁展示的角色。
Variants§
Required
The author must supply a value. 作者必须提供取值。
Derived
The value is computed from sibling fields. 取值由同排其他字段推导。
ReadOnly
The value is derived and cannot be edited directly. 取值由推导得到,不能直接编辑。
Optional
The field may be left empty. 该字段可以留空。
Conditional
The field applies only in the situation its help text names. 该字段仅在帮助文本所述情形下适用。
Implementations§
Trait Implementations§
Source§impl Clone for FaceFieldRole
impl Clone for FaceFieldRole
Source§fn clone(&self) -> FaceFieldRole
fn clone(&self) -> FaceFieldRole
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 moreimpl Copy for FaceFieldRole
Source§impl Debug for FaceFieldRole
impl Debug for FaceFieldRole
impl Eq for FaceFieldRole
Source§impl PartialEq for FaceFieldRole
impl PartialEq for FaceFieldRole
impl StructuralPartialEq for FaceFieldRole
Auto Trait Implementations§
impl Freeze for FaceFieldRole
impl RefUnwindSafe for FaceFieldRole
impl Send for FaceFieldRole
impl Sync for FaceFieldRole
impl Unpin for FaceFieldRole
impl UnsafeUnpin for FaceFieldRole
impl UnwindSafe for FaceFieldRole
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