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: String§label: Option<String>§required: bool§help_text: Option<String>§widget: Widget§initial: Option<Value>§protocol: IPProtocolImplementations§
Trait Implementations§
Source§impl FormField for GenericIPAddressField
impl FormField for GenericIPAddressField
fn name(&self) -> &str
fn label(&self) -> Option<&str>
fn required(&self) -> bool
fn help_text(&self) -> Option<&str>
fn widget(&self) -> &Widget
fn initial(&self) -> Option<&Value>
fn clean(&self, value: Option<&Value>) -> FieldResult<Value>
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