pub struct Record { /* private fields */ }Implementations§
Source§impl Record
impl Record
pub fn primary_key(&self) -> u64
pub fn recurrence_key(&self) -> Option<u64>
pub fn internal_recurrence_key(&self) -> Option<String>
pub fn internal_key(&self) -> Option<String>
pub fn set_internal_key(&mut self, key: Option<String>)
pub fn record_type(&self) -> RecordType
pub fn datetime(&self) -> DateTime<Local>
pub fn completed(&self) -> bool
pub fn date(&self) -> NaiveDate
pub fn at(&self) -> Option<NaiveTime>
pub fn scheduled(&self) -> Option<Schedule>
pub fn all_day(&self) -> bool
pub fn detail(&self) -> String
pub fn fields(&self) -> Fields
pub fn set_fields(&mut self, fields: Fields)
pub fn notifications(&self) -> Option<Notifications>
pub fn build() -> Self
pub async fn record(&self, db: MemoryDB) -> Result<()>
pub fn set_internal_recurrence_key( &mut self, internal_recurrence_key: Option<String>, )
pub fn set_primary_key(&mut self, primary_key: u64) -> &mut Self
pub fn set_recurrence_key(&mut self, key: Option<u64>) -> &mut Self
pub fn set_record_type(&mut self, typ: RecordType) -> &mut Self
pub fn set_all_day(&mut self) -> &mut Self
pub fn set_completed(&mut self, completed: bool) -> &mut Self
pub fn set_date(&mut self, date: NaiveDate) -> &mut Self
pub fn set_at(&mut self, at: Option<NaiveTime>) -> &mut Self
pub fn set_scheduled(&mut self, schedule: Option<Schedule>) -> &mut Self
pub fn set_detail(&mut self, detail: String) -> &mut Self
pub fn add_field(&mut self, field: String, content: String) -> &mut Self
pub fn get_field(&self, field: String) -> Option<Vec<String>>
pub fn add_notification(&mut self, notification: Duration) -> &mut Self
pub fn set_notifications(&mut self, notifications: Option<Notifications>)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Record
impl<'de> Deserialize<'de> for Record
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
Source§impl From<Record> for PresentedRecord
impl From<Record> for PresentedRecord
impl StructuralPartialEq for Record
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more