Struct dateless::EventPartial[][src]

pub struct EventPartial {
    pub name: Option<String>,
    pub description: Option<String>,
    pub period: Option<EventPeriod>,
    pub cyclicity: Option<EventCyclicity>,
}

Fields

name: Option<String>description: Option<String>period: Option<EventPeriod>cyclicity: Option<EventCyclicity>

Implementations

impl EventPartial[src]

impl EventPartial[src]

pub fn new<T: ToString>(name: T) -> Self[src]

pub fn with_description<T: ToString>(self, description: T) -> Self[src]

pub fn with_period(self, period: EventPeriod) -> Self[src]

pub fn with_cyclicity(self, cyclicity: EventCyclicity) -> Self[src]

pub fn complete(self) -> Event[src]

Trait Implementations

impl Debug for EventPartial[src]

impl Default for EventPartial[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.