pub struct EventPartial { /* private fields */ }Implementations§
Source§impl EventPartial
impl EventPartial
pub fn new<T: ToString>(name: T) -> Self
pub fn with_description<T: ToString>(self, description: T) -> Self
pub fn daily(self) -> Self
pub fn weekly(self) -> Self
pub fn monthly(self) -> Self
pub fn annual(self) -> Self
pub fn with_period(self, period: PeriodDef) -> Self
pub fn from_to(self, from: DateTime<Utc>, to: DateTime<Utc>) -> Self
pub fn whole_days(self, from: Date<Utc>, to: Date<Utc>) -> Self
pub fn whole_day(self, from_to: Date<Utc>) -> Self
pub fn complete(self) -> Event
Trait Implementations§
Source§impl Debug for EventPartial
impl Debug for EventPartial
Source§impl Default for EventPartial
impl Default for EventPartial
Source§fn default() -> EventPartial
fn default() -> EventPartial
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventPartial
impl<'de> Deserialize<'de> for EventPartial
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EventPartial
impl !RefUnwindSafe for EventPartial
impl Send for EventPartial
impl !Sync for EventPartial
impl Unpin for EventPartial
impl !UnwindSafe for EventPartial
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