Struct saturn_cli::record::Record
source · 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 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 add_notification(&mut self, notification: NaiveTime) -> &mut Self
pub fn set_notifications(&mut self, notifications: Option<Vec<NaiveTime>>)
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
source§impl PartialEq<Record> for Record
impl PartialEq<Record> for Record
impl Eq for Record
impl StructuralEq for Record
impl StructuralPartialEq for Record
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.