pub struct CountryPostalCodeProvider { /* private fields */ }Expand description
Provider that resolves country→postal code (PLZ) conditions.
Returns True if the country code is in the set of countries with PLZ requirements, False if it’s a known country without PLZ, Unknown if no country code is set.
Implementations§
Trait Implementations§
Source§impl ExternalConditionProvider for CountryPostalCodeProvider
impl ExternalConditionProvider for CountryPostalCodeProvider
Source§fn evaluate(&self, condition_name: &str) -> ConditionResult
fn evaluate(&self, condition_name: &str) -> ConditionResult
Evaluate an external condition by name. Read more
Source§fn now(&self) -> DateTime<Utc>
fn now(&self) -> DateTime<Utc>
The present moment, for conditions that compare against it: UTILMD
[494] “das hier genannte Datum muss der Zeitpunkt sein, zu dem das
Dokument erstellt wurde, oder ein Zeitpunkt, der davor liegt”. The
wall clock by default; a caller on a simulated clock overrides it.Auto Trait Implementations§
impl Freeze for CountryPostalCodeProvider
impl RefUnwindSafe for CountryPostalCodeProvider
impl Send for CountryPostalCodeProvider
impl Sync for CountryPostalCodeProvider
impl Unpin for CountryPostalCodeProvider
impl UnsafeUnpin for CountryPostalCodeProvider
impl UnwindSafe for CountryPostalCodeProvider
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