pub struct LinkFieldProperty {
pub code: String,
pub label: String,
pub no_label: bool,
pub required: bool,
pub unique: bool,
pub default_value: Option<String>,
pub max_length: Option<u64>,
pub min_length: Option<u64>,
pub protocol: LinkProtocol,
}Expand description
Properties for link fields.
Link fields store URL or other link information with protocol validation.
Fields§
§code: StringField code (unique identifier)
label: StringDisplay label
no_label: boolWhether to hide the field label
required: boolWhether the field is required
unique: boolWhether values must be unique across records
default_value: Option<String>Default link value when creating new records
max_length: Option<u64>Maximum allowed length
min_length: Option<u64>Minimum required length
protocol: LinkProtocolProtocol type for the link
Trait Implementations§
Source§impl Clone for LinkFieldProperty
impl Clone for LinkFieldProperty
Source§fn clone(&self) -> LinkFieldProperty
fn clone(&self) -> LinkFieldProperty
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 LinkFieldProperty
impl Debug for LinkFieldProperty
Source§impl Default for LinkFieldProperty
impl Default for LinkFieldProperty
Source§fn default() -> LinkFieldProperty
fn default() -> LinkFieldProperty
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LinkFieldProperty
impl<'de> Deserialize<'de> for LinkFieldProperty
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LinkFieldProperty
Source§impl From<LinkFieldProperty> for FieldProperty
impl From<LinkFieldProperty> for FieldProperty
Source§fn from(property: LinkFieldProperty) -> Self
fn from(property: LinkFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<LinkFieldPropertyBuilder> for LinkFieldProperty
impl From<LinkFieldPropertyBuilder> for LinkFieldProperty
Source§fn from(builder: LinkFieldPropertyBuilder) -> Self
fn from(builder: LinkFieldPropertyBuilder) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LinkFieldProperty
impl PartialEq for LinkFieldProperty
Source§impl Serialize for LinkFieldProperty
impl Serialize for LinkFieldProperty
impl StructuralPartialEq for LinkFieldProperty
Auto Trait Implementations§
impl Freeze for LinkFieldProperty
impl RefUnwindSafe for LinkFieldProperty
impl Send for LinkFieldProperty
impl Sync for LinkFieldProperty
impl Unpin for LinkFieldProperty
impl UnsafeUnpin for LinkFieldProperty
impl UnwindSafe for LinkFieldProperty
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