@@ -145,8 +145,8 @@ pub struct BlobProperties {
145
145
pub access_tier : Option < AccessTier > ,
146
146
#[ serde( default , with = "azure_core::date::rfc1123::option" ) ]
147
147
pub access_tier_change_time : Option < OffsetDateTime > ,
148
- pub lease_status : LeaseStatus ,
149
- pub lease_state : LeaseState ,
148
+ pub lease_status : Option < LeaseStatus > ,
149
+ pub lease_state : Option < LeaseState > ,
150
150
pub lease_duration : Option < LeaseDuration > ,
151
151
pub copy_id : Option < CopyId > ,
152
152
pub copy_status : Option < CopyStatus > ,
@@ -205,8 +205,8 @@ impl Blob {
205
205
let content_crc64 = h. get_optional_as ( & azure_storage:: headers:: CONTENT_CRC64 ) ?;
206
206
let cache_control = h. get_optional_string ( & headers:: CACHE_CONTROL ) ;
207
207
let content_disposition = h. get_optional_string ( & headers:: CONTENT_DISPOSITION ) ;
208
- let lease_status = h. get_as ( & headers:: LEASE_STATUS ) ?;
209
- let lease_state = h. get_as ( & headers:: LEASE_STATE ) ?;
208
+ let lease_status = h. get_optional_as ( & headers:: LEASE_STATUS ) ?;
209
+ let lease_state = h. get_optional_as ( & headers:: LEASE_STATE ) ?;
210
210
let lease_duration = h. get_optional_as ( & headers:: LEASE_DURATION ) ?;
211
211
let copy_id = h. get_optional_as ( & azure_storage:: headers:: COPY_ID ) ?;
212
212
let copy_status = h. get_optional_as ( & headers:: COPY_STATUS ) ?;
0 commit comments