pub fn new_emulator(address: &str, port: u16, options: CosmosOptions) -> Self {
        let auth_token = AuthorizationToken::primary_from_base64(EMULATOR_ACCOUNT_KEY).unwrap();
        let uri = format!("https://{}:{}", address, port);
        let cloud_location = CloudLocation::Custom {
            account: String::from("Custom"),
            uri,
        };
        let pipeline = new_pipeline_from_options(options, auth_token);
        Self {
            pipeline,
            cloud_location,
        }
    }
/// Create a new `CosmosClient` which connects to the account's instance in Azure emulator
Create a new `CosmosClient` which connects to the account's instance in Azure emulator
Create a new ` CosmosClient ` which connects to the account ' s instance in Azure emulator
pub fn new_emulator(address: &str, port: u16, options: CosmosOptions) -> Self {
        let auth_token = AuthorizationToken::primary_from_base64(EMULATOR_ACCOUNT_KEY).unwrap();
        let uri = format!("https://{}:{}", address, port);
        let cloud_location = CloudLocation::Custom {
            account: String::from("Custom"),
            uri,
        };
        let pipeline = new_pipeline_from_options(options, auth_token);
        Self {
            pipeline,
            cloud_location,
        }
    }
pub fn new_emulator ( address : & str , port : u16 , options : CosmosOptions ) -> Self { let auth_token = AuthorizationToken :: primary_from_base64 ( EMULATOR_ACCOUNT_KEY ) . unwrap ( ) ; let uri = format ! ( " " address port ) ; let cloud_location = CloudLocation :: Custom { account : String :: from ( " " ) , uri , } ; let pipeline = new_pipeline_from_options ( options , auth_token ) ; Self { pipeline , cloud_location , } }
Create a new `CosmosClient` which connects to the account's instance in Azure emulator
Create a new ` CosmosClient ` which connects to the account ' s instance in Azure emulator
address
&str
port
u16
options
CosmosOptions