pub struct SignatureField {
pub id: Option<String>,
pub label: String,
pub required: bool,
pub readonly: bool,
pub legal_text: Option<String>,
pub conditional_validation: Option<ConditionalValidation>,
}Expand description
Digital signature capture field.
Fields§
§id: Option<String>Optional unique identifier.
label: StringField label displayed to the user.
required: boolWhether the signature is required.
readonly: boolWhether the field is read-only.
legal_text: Option<String>Legal text that must be agreed to before signing.
conditional_validation: Option<ConditionalValidation>Conditional validation based on another field’s value.
Implementations§
Source§impl SignatureField
impl SignatureField
Sourcepub fn with_legal_text(self, text: impl Into<String>) -> Self
pub fn with_legal_text(self, text: impl Into<String>) -> Self
Set the legal text.
Sourcepub fn with_conditional_validation(self, cv: ConditionalValidation) -> Self
pub fn with_conditional_validation(self, cv: ConditionalValidation) -> Self
Set conditional validation.
Trait Implementations§
Source§impl Clone for SignatureField
impl Clone for SignatureField
Source§fn clone(&self) -> SignatureField
fn clone(&self) -> SignatureField
Returns a duplicate of the value. Read more
1.0.0 · 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 SignatureField
impl Debug for SignatureField
Source§impl<'de> Deserialize<'de> for SignatureField
impl<'de> Deserialize<'de> for SignatureField
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
Source§impl PartialEq for SignatureField
impl PartialEq for SignatureField
Source§impl Serialize for SignatureField
impl Serialize for SignatureField
impl Eq for SignatureField
impl StructuralPartialEq for SignatureField
Auto Trait Implementations§
impl Freeze for SignatureField
impl RefUnwindSafe for SignatureField
impl Send for SignatureField
impl Sync for SignatureField
impl Unpin for SignatureField
impl UnsafeUnpin for SignatureField
impl UnwindSafe for SignatureField
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.