#[non_exhaustive]
pub enum ProtectedResourceType {
ApplicationLoadBalancer,
ClassicLoadBalancer,
CloudfrontDistribution,
ElasticIpAllocation,
GlobalAccelerator,
Route53HostedZone,
Unknown(UnknownVariantValue),
}
Expand description
When writing a match expression against ProtectedResourceType
, it is important to ensure
your code is forward-compatible. That is, if a match arm handles a case for a
feature that is supported by the service but has not been represented as an enum
variant in a current version of SDK, your code should continue to work when you
upgrade SDK to a future version in which the enum does include a variant for that
feature.
Here is an example of how you can make a match expression forward-compatible:
# let protectedresourcetype = unimplemented!();
match protectedresourcetype {
ProtectedResourceType::ApplicationLoadBalancer => { /* ... */ },
ProtectedResourceType::ClassicLoadBalancer => { /* ... */ },
ProtectedResourceType::CloudfrontDistribution => { /* ... */ },
ProtectedResourceType::ElasticIpAllocation => { /* ... */ },
ProtectedResourceType::GlobalAccelerator => { /* ... */ },
ProtectedResourceType::Route53HostedZone => { /* ... */ },
other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ },
_ => { /* ... */ },
}
The above code demonstrates that when protectedresourcetype
represents
NewFeature
, the execution path will lead to the second last match arm,
even though the enum does not contain a variant ProtectedResourceType::NewFeature
in the current version of SDK. The reason is that the variable other
,
created by the @
operator, is bound to
ProtectedResourceType::Unknown(UnknownVariantValue("NewFeature".to_owned()))
and calling as_str
on it yields "NewFeature"
.
This match expression is forward-compatible when executed with a newer
version of SDK where the variant ProtectedResourceType::NewFeature
is defined.
Specifically, when protectedresourcetype
represents NewFeature
,
the execution path will hit the second last match arm as before by virtue of
calling as_str
on ProtectedResourceType::NewFeature
also yielding "NewFeature"
.
Explicitly matching on the Unknown
variant should
be avoided for two reasons:
- The inner data
UnknownVariantValue
is opaque, and no further information can be extracted. - It might inadvertently shadow other intended match arms.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ApplicationLoadBalancer
ClassicLoadBalancer
CloudfrontDistribution
ElasticIpAllocation
GlobalAccelerator
Route53HostedZone
Unknown(UnknownVariantValue)
Unknown
contains new variants that have been added since this code was generated.
Implementations§
source§impl ProtectedResourceType
impl ProtectedResourceType
sourcepub fn as_str(&self) -> &str
pub fn as_str(&self) -> &str
Returns the &str
value of the enum member.
Examples found in repository?
More examples
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597
pub fn serialize_structure_crate_input_create_protection_group_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::CreateProtectionGroupInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_15) = &input.protection_group_id {
object.key("ProtectionGroupId").string(var_15.as_str());
}
if let Some(var_16) = &input.aggregation {
object.key("Aggregation").string(var_16.as_str());
}
if let Some(var_17) = &input.pattern {
object.key("Pattern").string(var_17.as_str());
}
if let Some(var_18) = &input.resource_type {
object.key("ResourceType").string(var_18.as_str());
}
if let Some(var_19) = &input.members {
let mut array_20 = object.key("Members").start_array();
for item_21 in var_19 {
{
array_20.value().string(item_21.as_str());
}
}
array_20.finish();
}
if let Some(var_22) = &input.tags {
let mut array_23 = object.key("Tags").start_array();
for item_24 in var_22 {
{
#[allow(unused_mut)]
let mut object_25 = array_23.value().start_object();
crate::json_ser::serialize_structure_crate_model_tag(&mut object_25, item_24)?;
object_25.finish();
}
}
array_23.finish();
}
Ok(())
}
pub fn serialize_structure_crate_input_delete_protection_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::DeleteProtectionInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_26) = &input.protection_id {
object.key("ProtectionId").string(var_26.as_str());
}
Ok(())
}
pub fn serialize_structure_crate_input_delete_protection_group_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::DeleteProtectionGroupInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_27) = &input.protection_group_id {
object.key("ProtectionGroupId").string(var_27.as_str());
}
Ok(())
}
pub fn serialize_structure_crate_input_describe_attack_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::DescribeAttackInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_28) = &input.attack_id {
object.key("AttackId").string(var_28.as_str());
}
Ok(())
}
pub fn serialize_structure_crate_input_describe_protection_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::DescribeProtectionInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_29) = &input.protection_id {
object.key("ProtectionId").string(var_29.as_str());
}
if let Some(var_30) = &input.resource_arn {
object.key("ResourceArn").string(var_30.as_str());
}
Ok(())
}
pub fn serialize_structure_crate_input_describe_protection_group_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::DescribeProtectionGroupInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_31) = &input.protection_group_id {
object.key("ProtectionGroupId").string(var_31.as_str());
}
Ok(())
}
pub fn serialize_structure_crate_input_disable_application_layer_automatic_response_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::DisableApplicationLayerAutomaticResponseInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_32) = &input.resource_arn {
object.key("ResourceArn").string(var_32.as_str());
}
Ok(())
}
pub fn serialize_structure_crate_input_disassociate_drt_log_bucket_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::DisassociateDrtLogBucketInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_33) = &input.log_bucket {
object.key("LogBucket").string(var_33.as_str());
}
Ok(())
}
pub fn serialize_structure_crate_input_disassociate_health_check_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::DisassociateHealthCheckInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_34) = &input.protection_id {
object.key("ProtectionId").string(var_34.as_str());
}
if let Some(var_35) = &input.health_check_arn {
object.key("HealthCheckArn").string(var_35.as_str());
}
Ok(())
}
pub fn serialize_structure_crate_input_enable_application_layer_automatic_response_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::EnableApplicationLayerAutomaticResponseInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_36) = &input.resource_arn {
object.key("ResourceArn").string(var_36.as_str());
}
if let Some(var_37) = &input.action {
#[allow(unused_mut)]
let mut object_38 = object.key("Action").start_object();
crate::json_ser::serialize_structure_crate_model_response_action(&mut object_38, var_37)?;
object_38.finish();
}
Ok(())
}
pub fn serialize_structure_crate_input_list_attacks_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::ListAttacksInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_39) = &input.resource_arns {
let mut array_40 = object.key("ResourceArns").start_array();
for item_41 in var_39 {
{
array_40.value().string(item_41.as_str());
}
}
array_40.finish();
}
if let Some(var_42) = &input.start_time {
#[allow(unused_mut)]
let mut object_43 = object.key("StartTime").start_object();
crate::json_ser::serialize_structure_crate_model_time_range(&mut object_43, var_42)?;
object_43.finish();
}
if let Some(var_44) = &input.end_time {
#[allow(unused_mut)]
let mut object_45 = object.key("EndTime").start_object();
crate::json_ser::serialize_structure_crate_model_time_range(&mut object_45, var_44)?;
object_45.finish();
}
if let Some(var_46) = &input.next_token {
object.key("NextToken").string(var_46.as_str());
}
if let Some(var_47) = &input.max_results {
object.key("MaxResults").number(
#[allow(clippy::useless_conversion)]
aws_smithy_types::Number::NegInt((*var_47).into()),
);
}
Ok(())
}
pub fn serialize_structure_crate_input_list_protection_groups_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::ListProtectionGroupsInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_48) = &input.next_token {
object.key("NextToken").string(var_48.as_str());
}
if let Some(var_49) = &input.max_results {
object.key("MaxResults").number(
#[allow(clippy::useless_conversion)]
aws_smithy_types::Number::NegInt((*var_49).into()),
);
}
if let Some(var_50) = &input.inclusion_filters {
#[allow(unused_mut)]
let mut object_51 = object.key("InclusionFilters").start_object();
crate::json_ser::serialize_structure_crate_model_inclusion_protection_group_filters(
&mut object_51,
var_50,
)?;
object_51.finish();
}
Ok(())
}
pub fn serialize_structure_crate_input_list_protections_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::ListProtectionsInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_52) = &input.next_token {
object.key("NextToken").string(var_52.as_str());
}
if let Some(var_53) = &input.max_results {
object.key("MaxResults").number(
#[allow(clippy::useless_conversion)]
aws_smithy_types::Number::NegInt((*var_53).into()),
);
}
if let Some(var_54) = &input.inclusion_filters {
#[allow(unused_mut)]
let mut object_55 = object.key("InclusionFilters").start_object();
crate::json_ser::serialize_structure_crate_model_inclusion_protection_filters(
&mut object_55,
var_54,
)?;
object_55.finish();
}
Ok(())
}
pub fn serialize_structure_crate_input_list_resources_in_protection_group_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::ListResourcesInProtectionGroupInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_56) = &input.protection_group_id {
object.key("ProtectionGroupId").string(var_56.as_str());
}
if let Some(var_57) = &input.next_token {
object.key("NextToken").string(var_57.as_str());
}
if let Some(var_58) = &input.max_results {
object.key("MaxResults").number(
#[allow(clippy::useless_conversion)]
aws_smithy_types::Number::NegInt((*var_58).into()),
);
}
Ok(())
}
pub fn serialize_structure_crate_input_list_tags_for_resource_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::ListTagsForResourceInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_59) = &input.resource_arn {
object.key("ResourceARN").string(var_59.as_str());
}
Ok(())
}
pub fn serialize_structure_crate_input_tag_resource_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::TagResourceInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_60) = &input.resource_arn {
object.key("ResourceARN").string(var_60.as_str());
}
if let Some(var_61) = &input.tags {
let mut array_62 = object.key("Tags").start_array();
for item_63 in var_61 {
{
#[allow(unused_mut)]
let mut object_64 = array_62.value().start_object();
crate::json_ser::serialize_structure_crate_model_tag(&mut object_64, item_63)?;
object_64.finish();
}
}
array_62.finish();
}
Ok(())
}
pub fn serialize_structure_crate_input_untag_resource_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::UntagResourceInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_65) = &input.resource_arn {
object.key("ResourceARN").string(var_65.as_str());
}
if let Some(var_66) = &input.tag_keys {
let mut array_67 = object.key("TagKeys").start_array();
for item_68 in var_66 {
{
array_67.value().string(item_68.as_str());
}
}
array_67.finish();
}
Ok(())
}
pub fn serialize_structure_crate_input_update_application_layer_automatic_response_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::UpdateApplicationLayerAutomaticResponseInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_69) = &input.resource_arn {
object.key("ResourceArn").string(var_69.as_str());
}
if let Some(var_70) = &input.action {
#[allow(unused_mut)]
let mut object_71 = object.key("Action").start_object();
crate::json_ser::serialize_structure_crate_model_response_action(&mut object_71, var_70)?;
object_71.finish();
}
Ok(())
}
pub fn serialize_structure_crate_input_update_emergency_contact_settings_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::UpdateEmergencyContactSettingsInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_72) = &input.emergency_contact_list {
let mut array_73 = object.key("EmergencyContactList").start_array();
for item_74 in var_72 {
{
#[allow(unused_mut)]
let mut object_75 = array_73.value().start_object();
crate::json_ser::serialize_structure_crate_model_emergency_contact(
&mut object_75,
item_74,
)?;
object_75.finish();
}
}
array_73.finish();
}
Ok(())
}
pub fn serialize_structure_crate_input_update_protection_group_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::UpdateProtectionGroupInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_76) = &input.protection_group_id {
object.key("ProtectionGroupId").string(var_76.as_str());
}
if let Some(var_77) = &input.aggregation {
object.key("Aggregation").string(var_77.as_str());
}
if let Some(var_78) = &input.pattern {
object.key("Pattern").string(var_78.as_str());
}
if let Some(var_79) = &input.resource_type {
object.key("ResourceType").string(var_79.as_str());
}
if let Some(var_80) = &input.members {
let mut array_81 = object.key("Members").start_array();
for item_82 in var_80 {
{
array_81.value().string(item_82.as_str());
}
}
array_81.finish();
}
Ok(())
}
pub fn serialize_structure_crate_input_update_subscription_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::UpdateSubscriptionInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_83) = &input.auto_renew {
object.key("AutoRenew").string(var_83.as_str());
}
Ok(())
}
pub fn serialize_structure_crate_model_emergency_contact(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::model::EmergencyContact,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_84) = &input.email_address {
object.key("EmailAddress").string(var_84.as_str());
}
if let Some(var_85) = &input.phone_number {
object.key("PhoneNumber").string(var_85.as_str());
}
if let Some(var_86) = &input.contact_notes {
object.key("ContactNotes").string(var_86.as_str());
}
Ok(())
}
pub fn serialize_structure_crate_model_tag(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::model::Tag,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_87) = &input.key {
object.key("Key").string(var_87.as_str());
}
if let Some(var_88) = &input.value {
object.key("Value").string(var_88.as_str());
}
Ok(())
}
pub fn serialize_structure_crate_model_response_action(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::model::ResponseAction,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_89) = &input.block {
#[allow(unused_mut)]
let mut object_90 = object.key("Block").start_object();
crate::json_ser::serialize_structure_crate_model_block_action(&mut object_90, var_89)?;
object_90.finish();
}
if let Some(var_91) = &input.count {
#[allow(unused_mut)]
let mut object_92 = object.key("Count").start_object();
crate::json_ser::serialize_structure_crate_model_count_action(&mut object_92, var_91)?;
object_92.finish();
}
Ok(())
}
pub fn serialize_structure_crate_model_time_range(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::model::TimeRange,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_93) = &input.from_inclusive {
object
.key("FromInclusive")
.date_time(var_93, aws_smithy_types::date_time::Format::EpochSeconds)?;
}
if let Some(var_94) = &input.to_exclusive {
object
.key("ToExclusive")
.date_time(var_94, aws_smithy_types::date_time::Format::EpochSeconds)?;
}
Ok(())
}
pub fn serialize_structure_crate_model_inclusion_protection_group_filters(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::model::InclusionProtectionGroupFilters,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_95) = &input.protection_group_ids {
let mut array_96 = object.key("ProtectionGroupIds").start_array();
for item_97 in var_95 {
{
array_96.value().string(item_97.as_str());
}
}
array_96.finish();
}
if let Some(var_98) = &input.patterns {
let mut array_99 = object.key("Patterns").start_array();
for item_100 in var_98 {
{
array_99.value().string(item_100.as_str());
}
}
array_99.finish();
}
if let Some(var_101) = &input.resource_types {
let mut array_102 = object.key("ResourceTypes").start_array();
for item_103 in var_101 {
{
array_102.value().string(item_103.as_str());
}
}
array_102.finish();
}
if let Some(var_104) = &input.aggregations {
let mut array_105 = object.key("Aggregations").start_array();
for item_106 in var_104 {
{
array_105.value().string(item_106.as_str());
}
}
array_105.finish();
}
Ok(())
}
pub fn serialize_structure_crate_model_inclusion_protection_filters(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::model::InclusionProtectionFilters,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_107) = &input.resource_arns {
let mut array_108 = object.key("ResourceArns").start_array();
for item_109 in var_107 {
{
array_108.value().string(item_109.as_str());
}
}
array_108.finish();
}
if let Some(var_110) = &input.protection_names {
let mut array_111 = object.key("ProtectionNames").start_array();
for item_112 in var_110 {
{
array_111.value().string(item_112.as_str());
}
}
array_111.finish();
}
if let Some(var_113) = &input.resource_types {
let mut array_114 = object.key("ResourceTypes").start_array();
for item_115 in var_113 {
{
array_114.value().string(item_115.as_str());
}
}
array_114.finish();
}
Ok(())
}
Trait Implementations§
source§impl AsRef<str> for ProtectedResourceType
impl AsRef<str> for ProtectedResourceType
source§impl Clone for ProtectedResourceType
impl Clone for ProtectedResourceType
source§fn clone(&self) -> ProtectedResourceType
fn clone(&self) -> ProtectedResourceType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProtectedResourceType
impl Debug for ProtectedResourceType
source§impl From<&str> for ProtectedResourceType
impl From<&str> for ProtectedResourceType
source§impl FromStr for ProtectedResourceType
impl FromStr for ProtectedResourceType
source§impl Hash for ProtectedResourceType
impl Hash for ProtectedResourceType
source§impl Ord for ProtectedResourceType
impl Ord for ProtectedResourceType
source§fn cmp(&self, other: &ProtectedResourceType) -> Ordering
fn cmp(&self, other: &ProtectedResourceType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq<ProtectedResourceType> for ProtectedResourceType
impl PartialEq<ProtectedResourceType> for ProtectedResourceType
source§fn eq(&self, other: &ProtectedResourceType) -> bool
fn eq(&self, other: &ProtectedResourceType) -> bool
source§impl PartialOrd<ProtectedResourceType> for ProtectedResourceType
impl PartialOrd<ProtectedResourceType> for ProtectedResourceType
source§fn partial_cmp(&self, other: &ProtectedResourceType) -> Option<Ordering>
fn partial_cmp(&self, other: &ProtectedResourceType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ProtectedResourceType
impl StructuralEq for ProtectedResourceType
impl StructuralPartialEq for ProtectedResourceType
Auto Trait Implementations§
impl RefUnwindSafe for ProtectedResourceType
impl Send for ProtectedResourceType
impl Sync for ProtectedResourceType
impl Unpin for ProtectedResourceType
impl UnwindSafe for ProtectedResourceType
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.