@@ -779,7 +779,7 @@ add_movies_json_1: |-
779
779
use futures::executor::block_on;
780
780
781
781
fn main() { block_on(async move {
782
- let client = Client::new("http://localhost:7700", "masterKey");
782
+ let client = Client::new("http://localhost:7700", Some( "masterKey") );
783
783
784
784
// reading and parsing the file
785
785
let mut file = File::open("movies.json")
@@ -903,7 +903,7 @@ getting_started_add_documents_md: |-
903
903
use futures::executor::block_on;
904
904
905
905
fn main() { block_on(async move {
906
- let client = Client::new("http://localhost:7700", "masterKey");
906
+ let client = Client::new("http://localhost:7700", Some( "masterKey") );
907
907
908
908
// reading and parsing the file
909
909
let mut file = File::open("movies.json")
@@ -1022,7 +1022,7 @@ getting_started_update_displayed_attributes: |-
1022
1022
.await
1023
1023
.unwrap();
1024
1024
getting_started_communicating_with_a_protected_instance : |-
1025
- let client = Client::new("http://localhost:7700", "apiKey");
1025
+ let client = Client::new("http://localhost:7700", Some( "apiKey") );
1026
1026
client
1027
1027
.index("movies")
1028
1028
.search()
@@ -1385,20 +1385,20 @@ delete_a_key_1: |-
1385
1385
.delete_key(&key)
1386
1386
.await?;
1387
1387
authorization_header_1 :
1388
- let client = Client::new("http://localhost:7700", "masterKey");
1388
+ let client = Client::new("http://localhost:7700", Some( "masterKey") );
1389
1389
let keys = client
1390
1390
.get_keys()
1391
1391
.await
1392
1392
.unwrap();
1393
1393
security_guide_search_key_1 : |-
1394
- let client = Client::new("http://localhost:7700", "apiKey");
1394
+ let client = Client::new("http://localhost:7700", Some( "apiKey") );
1395
1395
let result = client.index("patient_medical_records")
1396
1396
.search()
1397
1397
.execute()
1398
1398
.await
1399
1399
.unwrap();
1400
1400
security_guide_update_key_1 : |-
1401
- let client = Client::new("http://localhost:7700", "masterKey");
1401
+ let client = Client::new("http://localhost:7700", Some( "masterKey") );
1402
1402
let mut key = client
1403
1403
.get_key("74c9c733-3368-4738-bbe5-1d18a5fecb37")
1404
1404
.await
@@ -1407,7 +1407,7 @@ security_guide_update_key_1: |-
1407
1407
.with_description("Default Search API key".to_string())
1408
1408
.update(&client);
1409
1409
security_guide_create_key_1 : |-
1410
- let client = Client::new("http://localhost:7700", "masterKey");
1410
+ let client = Client::new("http://localhost:7700", Some( "masterKey") );
1411
1411
let mut key_options = KeyBuilder::new("Search patient records key");
1412
1412
key_options
1413
1413
.with_action(Action::Search)
@@ -1418,13 +1418,13 @@ security_guide_create_key_1: |-
1418
1418
.await
1419
1419
.unwrap();
1420
1420
security_guide_list_keys_1 : |-
1421
- let client = Client::new("http://localhost:7700", "masterKey");
1421
+ let client = Client::new("http://localhost:7700", Some( "masterKey") );
1422
1422
let keys = client
1423
1423
.get_keys()
1424
1424
.await
1425
1425
.unwrap();
1426
1426
security_guide_delete_key_1 : |-
1427
- let client = Client::new("http://localhost:7700", "masterKey");
1427
+ let client = Client::new("http://localhost:7700", Some( "masterKey") );
1428
1428
let key = client
1429
1429
.get_key("ac5cd97d-5a4b-4226-a868-2d0eb6d197ab")
1430
1430
.await
@@ -1433,7 +1433,7 @@ security_guide_delete_key_1: |-
1433
1433
.delete_key(&key)
1434
1434
.await?;
1435
1435
landing_getting_started_1 : |-
1436
- let client = Client::new("http://localhost:7700", "masterKey");
1436
+ let client = Client::new("http://localhost:7700", Some( "masterKey") );
1437
1437
1438
1438
#[derive(Serialize, Deserialize)]
1439
1439
struct Movie {
@@ -1462,7 +1462,7 @@ tenant_token_guide_generate_sdk_1: |-
1462
1462
.generate_tenant_token(api_key_uid, search_rules, api_key, expires_at)
1463
1463
.unwrap();
1464
1464
tenant_token_guide_search_sdk_1 : |-
1465
- let front_end_client = Client::new("http://localhost:7700", token);
1465
+ let front_end_client = Client::new("http://localhost:7700", Some( token) );
1466
1466
let results: SearchResults<Patient> = front_end_client
1467
1467
.index("patient_medical_records")
1468
1468
.search()
0 commit comments