pub struct VariableNamePolicy {
pub max_length: usize,
pub allowed_pattern: String,
pub blocked_names: Vec<String>,
}Expand description
Variable name policy
Fields§
§max_length: usizeMaximum variable name length
allowed_pattern: StringAllowed characters pattern (regex)
blocked_names: Vec<String>Blocked variable names
Trait Implementations§
Source§impl Clone for VariableNamePolicy
impl Clone for VariableNamePolicy
Source§fn clone(&self) -> VariableNamePolicy
fn clone(&self) -> VariableNamePolicy
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 VariableNamePolicy
impl Debug for VariableNamePolicy
Source§impl Default for VariableNamePolicy
impl Default for VariableNamePolicy
Source§fn default() -> VariableNamePolicy
fn default() -> VariableNamePolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VariableNamePolicy
impl<'de> Deserialize<'de> for VariableNamePolicy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VariableNamePolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VariableNamePolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for VariableNamePolicy
impl Serialize for VariableNamePolicy
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for VariableNamePolicy
impl RefUnwindSafe for VariableNamePolicy
impl Send for VariableNamePolicy
impl Sync for VariableNamePolicy
impl Unpin for VariableNamePolicy
impl UnwindSafe for VariableNamePolicy
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