pub fn size_and_capacity(&mut self) -> Result<(u64, Option<u64>), Error> {
        let (_response, about) = self.hub
            .about()
            .get()
            .param("fields", "storageQuota")
            .add_scope(drive3::Scope::Full)
            .doit()
            .map_err(|e| err_msg(format!("{:#?}", e)))?;

        let storage_quota = about
            .storage_quota
            .ok_or(err_msg("size_and_capacity(): no storage quota in response"))?;

        let usage = storage_quota.usage.unwrap().parse::<u64>().unwrap();
        let limit = storage_quota.limit.map(|s| s.parse::<u64>().unwrap());

        Ok((usage, limit))
    }
/// Returns the size and capacity of the Drive account. In some cases, the limit can be absent.
Returns the size and capacity of the Drive account. In some cases, the limit can be absent.
Returns the size and capacity of the Drive account . In some cases the limit can be absent .
pub fn size_and_capacity(&mut self) -> Result<(u64, Option<u64>), Error> {
        let (_response, about) = self.hub
            .about()
            .get()
            .param("fields", "storageQuota")
            .add_scope(drive3::Scope::Full)
            .doit()
            .map_err(|e| err_msg(format!("{:#?}", e)))?;
        let storage_quota = about
            .storage_quota
            .ok_or(err_msg("size_and_capacity(): no storage quota in response"))?;
        let usage = storage_quota.usage.unwrap().parse::<u64>().unwrap();
        let limit = storage_quota.limit.map(|s| s.parse::<u64>().unwrap());
        Ok((usage, limit))
    }
pub fn size_and_capacity ( & mut self ) -> Result < ( u64 , Option < u64 > ) , Error > { let ( _response , about ) = self . hub . about ( ) . get ( ) . param ( " " , " " ) . add_scope ( drive3 :: Scope :: Full ) . doit ( ) . map_err ( | e | err_msg ( format ! ( " " e ) ) ) ? ; let storage_quota = about . storage_quota . ok_or ( err_msg ( " " ) ) ? ; let usage = storage_quota . usage . unwrap ( ) . parse :: < u64 > ( ) . unwrap ( ) ; let limit = storage_quota . limit . map ( | s | s . parse :: < u64 > ( ) . unwrap ( ) ) ; Ok ( ( usage , limit ) ) }
Returns the size and capacity of the Drive account.
Returns the size and capacity of the Drive account .
&mut self
&mut self