pub struct RegularExpressionValidationRule {Show 17 fields
pub id: Option<Uuid>,
pub object_type: Option<String>,
pub display: Option<String>,
pub url: Option<String>,
pub natural_slug: Option<String>,
pub content_type: String,
pub name: String,
pub field: String,
pub enabled: Option<bool>,
pub error_message: Option<String>,
pub regular_expression: String,
pub context_processing: Option<bool>,
pub created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
pub tags: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
pub notes_url: Option<String>,
pub custom_fields: Option<HashMap<String, Value>>,
}Expand description
RegularExpressionValidationRule : Serializer for RegularExpressionValidationRule objects.
Fields§
§id: Option<Uuid>§object_type: Option<String>§display: Option<String>Human friendly display value
url: Option<String>§natural_slug: Option<String>§content_type: String§name: String§field: String§enabled: Option<bool>§error_message: Option<String>Optional error message to display when validation fails.
regular_expression: String§context_processing: Option<bool>When enabled, the regular expression value is first processed as a Jinja2 template with access to the context of the data being validated in a variable named object.
created: Option<Option<String>>§last_updated: Option<Option<String>>§notes_url: Option<String>§custom_fields: Option<HashMap<String, Value>>Implementations§
Trait Implementations§
Source§impl Clone for RegularExpressionValidationRule
impl Clone for RegularExpressionValidationRule
Source§fn clone(&self) -> RegularExpressionValidationRule
fn clone(&self) -> RegularExpressionValidationRule
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 Default for RegularExpressionValidationRule
impl Default for RegularExpressionValidationRule
Source§fn default() -> RegularExpressionValidationRule
fn default() -> RegularExpressionValidationRule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RegularExpressionValidationRule
impl<'de> Deserialize<'de> for RegularExpressionValidationRule
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 RegularExpressionValidationRule
impl PartialEq for RegularExpressionValidationRule
Source§fn eq(&self, other: &RegularExpressionValidationRule) -> bool
fn eq(&self, other: &RegularExpressionValidationRule) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RegularExpressionValidationRule
Auto Trait Implementations§
impl Freeze for RegularExpressionValidationRule
impl RefUnwindSafe for RegularExpressionValidationRule
impl Send for RegularExpressionValidationRule
impl Sync for RegularExpressionValidationRule
impl Unpin for RegularExpressionValidationRule
impl UnsafeUnpin for RegularExpressionValidationRule
impl UnwindSafe for RegularExpressionValidationRule
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