Struct saturn_cli::db::google::GoogleClient
source · pub struct GoogleClient { /* private fields */ }Implementations§
source§impl GoogleClient
impl GoogleClient
pub fn new(config: Config) -> Result<Self>
pub fn client(&self) -> Client
pub fn pick_uid(&self) -> u64
pub async fn list_calendars( &mut self ) -> Result<Vec<CalendarListItem>, ClientError>
pub async fn record_to_event( &mut self, calendar_id: String, record: &mut Record ) -> Event
pub async fn refresh_access_token(&mut self) -> Result<()>
pub fn event_to_record(&mut self, event: Event) -> Result<Record, ClientError>
Trait Implementations§
source§impl Clone for GoogleClient
impl Clone for GoogleClient
source§fn clone(&self) -> GoogleClient
fn clone(&self) -> GoogleClient
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for GoogleClient
impl Debug for GoogleClient
source§impl Default for GoogleClient
impl Default for GoogleClient
source§fn default() -> GoogleClient
fn default() -> GoogleClient
Returns the “default value” for a type. Read more
source§impl RemoteClient for GoogleClient
impl RemoteClient for GoogleClient
fn delete<'life0, 'async_trait>( &'life0 mut self, calendar_id: String, event_id: String ) -> 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, calendar_id: String, event_id: String ) -> 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, calendar_id: String, record: Record ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn record_recurrence<'life0, 'async_trait>( &'life0 mut self, calendar_id: String, record: RecurringRecord ) -> Pin<Box<dyn Future<Output = Result<(String, String)>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn list_recurrence<'life0, 'async_trait>( &'life0 mut self, calendar_id: String ) -> 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, _calendar_id: String ) -> 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, calendar_id: String, _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, calendar_id: String, _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, calendar_id: String, 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, _calendar_id: String, _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, calendar_id: String, event_id: String ) -> 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, calendar_id: String, event_id: String ) -> 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, calendar_id: String, 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, calendar_id: String, record: RecurringRecord ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for GoogleClient
impl Send for GoogleClient
impl Sync for GoogleClient
impl Unpin for GoogleClient
impl !UnwindSafe for GoogleClient
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