Skip to main content

derive_deftly_template_ValidatedString

Macro derive_deftly_template_ValidatedString 

Source
macro_rules! derive_deftly_template_ValidatedString {
    ({ $($driver:tt)* } [$($aoptions:tt)*] ($($future:tt)*) $($tpassthrough:tt)*) => { ... };
    ($($wrong:tt)*) => { ... };
}
Expand description

Implement new(), TryFrom<String> in terms of validate_str, and as_ref<str>

This is a derive_deftly template. Do not invoke it directly. To use it, write: #[derive(Deftly)] #[derive_deftly(ValidatedString)].