pub fn new() -> Result<Self> {
            let path = env::temp_dir().join(Uuid::new_v4().to_string());

            let api_key = "<api_key>".to_string();
            let private_key = "<private_key>".to_string();
            fs::write(&path, format!("{}\n{}", api_key, private_key))?;

            Ok(Self {
                api_key,
                private_key,
                path,
            })
        }
/// Creates a new file with dummy credentials.
Creates a new file with dummy credentials.
Creates a new file with dummy credentials .
pub fn new() -> Result<Self> {
            let path = env::temp_dir().join(Uuid::new_v4().to_string());
            let api_key = "<api_key>".to_string();
            let private_key = "<private_key>".to_string();
            fs::write(&path, format!("{}\n{}", api_key, private_key))?;
            Ok(Self {
                api_key,
                private_key,
                path,
            })
        }
pub fn new ( ) -> Result < Self > { let path = env :: temp_dir ( ) . join ( Uuid :: new_v4 ( ) . to_string ( ) ) ; let api_key = " " . to_string ( ) ; let private_key = " " . to_string ( ) ; fs :: write ( & path , format ! ( " \n " api_key private_key ) ) ? ; Ok ( Self { api_key , private_key , path , } ) }
Creates a new file with dummy credentials.
Creates a new file with dummy credentials .