Struct saturn_cli::ui::state::ProtectedState
source · pub struct ProtectedState<'a>(/* private fields */);Implementations§
source§impl<'a> ProtectedState<'a>
impl<'a> ProtectedState<'a>
pub fn google_db(&self, config: Config) -> Result<RemoteDBClient<GoogleClient>>
pub fn memory_db(&self) -> Result<MemoryDB>
pub async fn list_google_recurring( &self, config: Config ) -> Result<Vec<RecurringRecord>>
pub async fn list_file_recurring(&self) -> Result<Vec<RecurringRecord>>
pub async fn list_google( &self, config: Config, list_type: ListType ) -> Result<Vec<Record>>
pub async fn list_file(&self, list_type: ListType) -> Result<Vec<Record>>
pub async fn command_google(&self, config: Config) -> Result<()>
pub async fn command_file(&self) -> Result<()>
pub async fn get_google(&self, config: Config, id: u64) -> Result<Record>
pub async fn get_file(&self, id: u64) -> Result<Record>
pub async fn get_recurring_google( &self, config: Config, id: u64 ) -> Result<RecurringRecord>
pub async fn get_recurring_file(&self, id: u64) -> Result<RecurringRecord>
pub async fn update_state(&self) -> Result<()>
pub async fn refresh(&self) -> Result<()>
pub async fn add_notification(&self, notification: &str)
Trait Implementations§
source§impl<'a> Clone for ProtectedState<'a>
impl<'a> Clone for ProtectedState<'a>
source§fn clone(&self) -> ProtectedState<'a>
fn clone(&self) -> ProtectedState<'a>
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<'a> Debug for ProtectedState<'a>
impl<'a> Debug for ProtectedState<'a>
source§impl<'a> Default for ProtectedState<'a>
impl<'a> Default for ProtectedState<'a>
source§fn default() -> ProtectedState<'a>
fn default() -> ProtectedState<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ProtectedState<'a>
impl<'a> Send for ProtectedState<'a>
impl<'a> Sync for ProtectedState<'a>
impl<'a> Unpin for ProtectedState<'a>
impl<'a> !UnwindSafe for ProtectedState<'a>
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