File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
sdk/cosmos/azure_data_cosmos/src Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -48,9 +48,7 @@ impl std::error::Error for CacheError {
4848
4949/// A subset of container properties that are stable and suitable for caching.
5050pub ( crate ) struct ContainerMetadata {
51- pub self_link : String ,
5251 pub resource_id : ResourceId ,
53- pub partition_key : PartitionKeyDefinition ,
5452 pub container_link : ResourceLink ,
5553}
5654
@@ -60,17 +58,6 @@ impl ContainerMetadata {
6058 properties : & ContainerProperties ,
6159 container_link : ResourceLink ,
6260 ) -> azure_core:: Result < Self > {
63- let self_link = properties
64- . system_properties
65- . self_link
66- . as_ref ( )
67- . ok_or_else ( || {
68- azure_core:: Error :: new (
69- azure_core:: error:: ErrorKind :: Other ,
70- "container properties is missing expected value 'self_link'" ,
71- )
72- } ) ?
73- . clone ( ) ;
7461 let resource_id = properties
7562 . system_properties
7663 . resource_id
@@ -82,9 +69,7 @@ impl ContainerMetadata {
8269 )
8370 } ) ?;
8471 Ok ( Self {
85- self_link,
8672 resource_id,
87- partition_key : properties. partition_key . clone ( ) ,
8873 container_link,
8974 } )
9075 }
You can’t perform that action at this time.
0 commit comments