pub struct GenericIPAddressField {
pub name: String,
pub label: Option<String>,
pub required: bool,
pub help_text: Option<String>,
pub widget: Widget,
pub initial: Option<Value>,
pub protocol: IPProtocol,
}Expand description
GenericIPAddressField for IPv4 and IPv6 addresses
Fields§
§name: StringThe field name used as the form data key.
label: Option<String>Optional human-readable label for display.
required: boolWhether this field must be filled in.
help_text: Option<String>Optional help text displayed alongside the field.
widget: WidgetThe widget type used for rendering this field.
initial: Option<Value>Optional initial (default) value for the field.
protocol: IPProtocolWhich IP protocol versions to accept.
Implementations§
Trait Implementations§
Source§impl Clone for GenericIPAddressField
impl Clone for GenericIPAddressField
Source§fn clone(&self) -> GenericIPAddressField
fn clone(&self) -> GenericIPAddressField
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 GenericIPAddressField
impl Debug for GenericIPAddressField
Source§impl FormField for GenericIPAddressField
impl FormField for GenericIPAddressField
Source§fn initial(&self) -> Option<&Value>
fn initial(&self) -> Option<&Value>
Returns the initial (default) value for this field, if any.
Source§fn clean(&self, value: Option<&Value>) -> FieldResult<Value>
fn clean(&self, value: Option<&Value>) -> FieldResult<Value>
Validates and cleans the submitted value, returning the cleaned result.
Auto Trait Implementations§
impl Freeze for GenericIPAddressField
impl RefUnwindSafe for GenericIPAddressField
impl Send for GenericIPAddressField
impl Sync for GenericIPAddressField
impl Unpin for GenericIPAddressField
impl UnsafeUnpin for GenericIPAddressField
impl UnwindSafe for GenericIPAddressField
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