Struct saturn_cli::db::remote::RemoteDB
source · pub struct RemoteDB { /* private fields */ }Implementations§
source§impl RemoteDB
impl RemoteDB
pub fn new(calendar_id: String) -> Self
pub fn add_internal(&mut self, primary_key: u64, remote_key: String)
pub fn add(&mut self, primary_key: String, remote_key: u64)
pub fn add_recurring_internal(&mut self, primary_key: u64, remote_key: String)
pub fn add_recurring(&mut self, primary_key: String, remote_key: u64)
pub fn lookup_internal(&self, id: String) -> Option<u64>
pub fn lookup(&self, id: u64) -> Option<String>
pub fn recurring_lookup_internal(&self, id: String) -> Option<u64>
pub fn recurring_lookup(&self, id: u64) -> Option<String>
pub fn remove_by_internal_id(&mut self, id: u64)
pub fn remove_by_public_id(&mut self, id: String)
pub fn remove_recurring_by_internal_id(&mut self, id: u64)
pub fn remove_recurring_by_public_id(&mut self, id: String)
Trait Implementations§
source§impl DB for RemoteDB
impl DB for RemoteDB
fn load<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn dump<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn primary_key(&self) -> u64
fn set_primary_key(&mut self, primary_key: u64)
fn recurrence_key(&self) -> u64
fn set_recurrence_key(&mut self, recurrence_key: u64)
fn delete<'life0, 'async_trait>(
&'life0 mut self,
primary_key: u64
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_recurrence<'life0, 'async_trait>(
&'life0 mut self,
recurrence_key: u64
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn record<'life0, 'async_trait>(
&'life0 mut self,
_record: Record
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn record_recurrence<'life0, 'async_trait>(
&'life0 mut self,
_record: RecurringRecord
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn insert_record<'life0, 'async_trait>(
&'life0 mut self,
_record: Record
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn insert_recurrence<'life0, 'async_trait>(
&'life0 mut self,
_record: RecurringRecord
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_recurrence<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Vec<RecurringRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_recurrence<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_today<'life0, 'async_trait>(
&'life0 mut self,
_include_completed: bool
) -> Pin<Box<dyn Future<Output = Result<Vec<Record>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_all<'life0, 'async_trait>(
&'life0 mut self,
_include_completed: bool
) -> Pin<Box<dyn Future<Output = Result<Vec<Record>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn events_now<'life0, 'async_trait>(
&'life0 mut self,
_last: Duration,
_include_completed: bool
) -> Pin<Box<dyn Future<Output = Result<Vec<Record>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn complete_task<'life0, 'async_trait>(
&'life0 mut self,
_primary_key: u64
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get<'life0, 'async_trait>(
&'life0 mut self,
_primary_key: u64
) -> Pin<Box<dyn Future<Output = Result<Record>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_recurring<'life0, 'async_trait>(
&'life0 mut self,
_primary_key: u64
) -> Pin<Box<dyn Future<Output = Result<RecurringRecord>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update<'life0, 'async_trait>(
&'life0 mut self,
_record: Record
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_recurring<'life0, 'async_trait>(
&'life0 mut self,
_record: RecurringRecord
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn next_key(&mut self) -> u64
fn next_recurrence_key(&mut self) -> u64
fn record_entry<'life0, 'async_trait>(
&'life0 mut self,
entry: EntryParser
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
source§impl<'de> Deserialize<'de> for RemoteDB
impl<'de> Deserialize<'de> for RemoteDB
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 RefUnwindSafe for RemoteDB
impl Send for RemoteDB
impl Sync for RemoteDB
impl Unpin for RemoteDB
impl UnwindSafe for RemoteDB
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