Struct foxbox_taxonomy::selector::Period [] [src]

pub struct Period {
    pub min: Option<Duration>,
    pub max: Option<Duration>,
}

An acceptable interval of time.

Fields

min
max

Methods

impl Period

fn and(self, other: Self) -> Self

fn and_option(a: Option<Self>, b: Option<Self>) -> Option<Self>

fn matches(&self, duration: &Duration) -> bool

fn matches_option(period: &Option<Self>, duration: &Option<Duration>) -> bool

Trait Implementations

impl Deserialize for Period

fn deserialize<__D>(deserializer: &mut __D) -> Result<Period, __D::Error> where __D: Deserializer

impl Serialize for Period

fn serialize<__S>(&self, serializer: &mut __S) -> Result<(), __S::Error> where __S: Serializer

Derived Implementations

impl Default for Period

fn default() -> Period

impl Debug for Period

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Period

fn clone(&self) -> Period

1.0.0fn clone_from(&mut self, source: &Self)