1
1
use azure_sdk_core:: errors:: AzureError ;
2
2
use azure_sdk_core:: {
3
- content_crc64_from_headers, content_md5_from_headers, date_from_headers, etag_from_headers,
4
- last_modified_from_headers, request_id_from_headers, request_server_encrypted_from_headers,
5
- RequestId ,
3
+ consistency_from_headers, date_from_headers, etag_from_headers, last_modified_from_headers,
4
+ request_id_from_headers, request_server_encrypted_from_headers, Consistency , RequestId ,
6
5
} ;
7
6
use chrono:: { DateTime , Utc } ;
8
7
use http:: HeaderMap ;
@@ -11,8 +10,7 @@ use http::HeaderMap;
11
10
pub struct PutBlockBlobResponse {
12
11
pub etag : String ,
13
12
pub last_modified : DateTime < Utc > ,
14
- pub content_md5 : [ u8 ; 16 ] ,
15
- pub content_crc64 : [ u8 ; 8 ] ,
13
+ pub consistency : Consistency ,
16
14
pub request_id : RequestId ,
17
15
pub date : DateTime < Utc > ,
18
16
pub request_server_encrypted : bool ,
@@ -24,17 +22,15 @@ impl PutBlockBlobResponse {
24
22
25
23
let etag = etag_from_headers ( headers) ?;
26
24
let last_modified = last_modified_from_headers ( headers) ?;
27
- let content_md5 = content_md5_from_headers ( headers) ?;
28
- let content_crc64 = content_crc64_from_headers ( headers) ?;
25
+ let consistency = consistency_from_headers ( headers) ?;
29
26
let request_id = request_id_from_headers ( headers) ?;
30
27
let date = date_from_headers ( headers) ?;
31
28
let request_server_encrypted = request_server_encrypted_from_headers ( headers) ?;
32
29
33
30
Ok ( PutBlockBlobResponse {
34
31
etag,
35
32
last_modified,
36
- content_md5,
37
- content_crc64,
33
+ consistency,
38
34
request_id,
39
35
date,
40
36
request_server_encrypted,
0 commit comments