Enum aws_sdk_databrew::model::LogSubscription
source · #[non_exhaustive]
pub enum LogSubscription {
Disable,
Enable,
Unknown(UnknownVariantValue),
}
Expand description
When writing a match expression against LogSubscription
, 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 logsubscription = unimplemented!();
match logsubscription {
LogSubscription::Disable => { /* ... */ },
LogSubscription::Enable => { /* ... */ },
other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ },
_ => { /* ... */ },
}
The above code demonstrates that when logsubscription
represents
NewFeature
, the execution path will lead to the second last match arm,
even though the enum does not contain a variant LogSubscription::NewFeature
in the current version of SDK. The reason is that the variable other
,
created by the @
operator, is bound to
LogSubscription::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 LogSubscription::NewFeature
is defined.
Specifically, when logsubscription
represents NewFeature
,
the execution path will hit the second last match arm as before by virtue of
calling as_str
on LogSubscription::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
Disable
Enable
Unknown(UnknownVariantValue)
Unknown
contains new variants that have been added since this code was generated.
Implementations§
source§impl LogSubscription
impl LogSubscription
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
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 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 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682
pub fn serialize_structure_crate_input_create_profile_job_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::CreateProfileJobInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_16) = &input.configuration {
#[allow(unused_mut)]
let mut object_17 = object.key("Configuration").start_object();
crate::json_ser::serialize_structure_crate_model_profile_configuration(
&mut object_17,
var_16,
)?;
object_17.finish();
}
if let Some(var_18) = &input.dataset_name {
object.key("DatasetName").string(var_18.as_str());
}
if let Some(var_19) = &input.encryption_key_arn {
object.key("EncryptionKeyArn").string(var_19.as_str());
}
if let Some(var_20) = &input.encryption_mode {
object.key("EncryptionMode").string(var_20.as_str());
}
if let Some(var_21) = &input.job_sample {
#[allow(unused_mut)]
let mut object_22 = object.key("JobSample").start_object();
crate::json_ser::serialize_structure_crate_model_job_sample(&mut object_22, var_21)?;
object_22.finish();
}
if let Some(var_23) = &input.log_subscription {
object.key("LogSubscription").string(var_23.as_str());
}
if input.max_capacity != 0 {
object.key("MaxCapacity").number(
#[allow(clippy::useless_conversion)]
aws_smithy_types::Number::NegInt((input.max_capacity).into()),
);
}
if input.max_retries != 0 {
object.key("MaxRetries").number(
#[allow(clippy::useless_conversion)]
aws_smithy_types::Number::NegInt((input.max_retries).into()),
);
}
if let Some(var_24) = &input.name {
object.key("Name").string(var_24.as_str());
}
if let Some(var_25) = &input.output_location {
#[allow(unused_mut)]
let mut object_26 = object.key("OutputLocation").start_object();
crate::json_ser::serialize_structure_crate_model_s3_location(&mut object_26, var_25)?;
object_26.finish();
}
if let Some(var_27) = &input.role_arn {
object.key("RoleArn").string(var_27.as_str());
}
if let Some(var_28) = &input.tags {
#[allow(unused_mut)]
let mut object_29 = object.key("Tags").start_object();
for (key_30, value_31) in var_28 {
{
object_29.key(key_30.as_str()).string(value_31.as_str());
}
}
object_29.finish();
}
if input.timeout != 0 {
object.key("Timeout").number(
#[allow(clippy::useless_conversion)]
aws_smithy_types::Number::NegInt((input.timeout).into()),
);
}
if let Some(var_32) = &input.validation_configurations {
let mut array_33 = object.key("ValidationConfigurations").start_array();
for item_34 in var_32 {
{
#[allow(unused_mut)]
let mut object_35 = array_33.value().start_object();
crate::json_ser::serialize_structure_crate_model_validation_configuration(
&mut object_35,
item_34,
)?;
object_35.finish();
}
}
array_33.finish();
}
Ok(())
}
pub fn serialize_structure_crate_input_create_project_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::CreateProjectInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_36) = &input.dataset_name {
object.key("DatasetName").string(var_36.as_str());
}
if let Some(var_37) = &input.name {
object.key("Name").string(var_37.as_str());
}
if let Some(var_38) = &input.recipe_name {
object.key("RecipeName").string(var_38.as_str());
}
if let Some(var_39) = &input.role_arn {
object.key("RoleArn").string(var_39.as_str());
}
if let Some(var_40) = &input.sample {
#[allow(unused_mut)]
let mut object_41 = object.key("Sample").start_object();
crate::json_ser::serialize_structure_crate_model_sample(&mut object_41, var_40)?;
object_41.finish();
}
if let Some(var_42) = &input.tags {
#[allow(unused_mut)]
let mut object_43 = object.key("Tags").start_object();
for (key_44, value_45) in var_42 {
{
object_43.key(key_44.as_str()).string(value_45.as_str());
}
}
object_43.finish();
}
Ok(())
}
pub fn serialize_structure_crate_input_create_recipe_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::CreateRecipeInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_46) = &input.description {
object.key("Description").string(var_46.as_str());
}
if let Some(var_47) = &input.name {
object.key("Name").string(var_47.as_str());
}
if let Some(var_48) = &input.steps {
let mut array_49 = object.key("Steps").start_array();
for item_50 in var_48 {
{
#[allow(unused_mut)]
let mut object_51 = array_49.value().start_object();
crate::json_ser::serialize_structure_crate_model_recipe_step(
&mut object_51,
item_50,
)?;
object_51.finish();
}
}
array_49.finish();
}
if let Some(var_52) = &input.tags {
#[allow(unused_mut)]
let mut object_53 = object.key("Tags").start_object();
for (key_54, value_55) in var_52 {
{
object_53.key(key_54.as_str()).string(value_55.as_str());
}
}
object_53.finish();
}
Ok(())
}
pub fn serialize_structure_crate_input_create_recipe_job_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::CreateRecipeJobInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_56) = &input.data_catalog_outputs {
let mut array_57 = object.key("DataCatalogOutputs").start_array();
for item_58 in var_56 {
{
#[allow(unused_mut)]
let mut object_59 = array_57.value().start_object();
crate::json_ser::serialize_structure_crate_model_data_catalog_output(
&mut object_59,
item_58,
)?;
object_59.finish();
}
}
array_57.finish();
}
if let Some(var_60) = &input.database_outputs {
let mut array_61 = object.key("DatabaseOutputs").start_array();
for item_62 in var_60 {
{
#[allow(unused_mut)]
let mut object_63 = array_61.value().start_object();
crate::json_ser::serialize_structure_crate_model_database_output(
&mut object_63,
item_62,
)?;
object_63.finish();
}
}
array_61.finish();
}
if let Some(var_64) = &input.dataset_name {
object.key("DatasetName").string(var_64.as_str());
}
if let Some(var_65) = &input.encryption_key_arn {
object.key("EncryptionKeyArn").string(var_65.as_str());
}
if let Some(var_66) = &input.encryption_mode {
object.key("EncryptionMode").string(var_66.as_str());
}
if let Some(var_67) = &input.log_subscription {
object.key("LogSubscription").string(var_67.as_str());
}
if input.max_capacity != 0 {
object.key("MaxCapacity").number(
#[allow(clippy::useless_conversion)]
aws_smithy_types::Number::NegInt((input.max_capacity).into()),
);
}
if input.max_retries != 0 {
object.key("MaxRetries").number(
#[allow(clippy::useless_conversion)]
aws_smithy_types::Number::NegInt((input.max_retries).into()),
);
}
if let Some(var_68) = &input.name {
object.key("Name").string(var_68.as_str());
}
if let Some(var_69) = &input.outputs {
let mut array_70 = object.key("Outputs").start_array();
for item_71 in var_69 {
{
#[allow(unused_mut)]
let mut object_72 = array_70.value().start_object();
crate::json_ser::serialize_structure_crate_model_output(&mut object_72, item_71)?;
object_72.finish();
}
}
array_70.finish();
}
if let Some(var_73) = &input.project_name {
object.key("ProjectName").string(var_73.as_str());
}
if let Some(var_74) = &input.recipe_reference {
#[allow(unused_mut)]
let mut object_75 = object.key("RecipeReference").start_object();
crate::json_ser::serialize_structure_crate_model_recipe_reference(&mut object_75, var_74)?;
object_75.finish();
}
if let Some(var_76) = &input.role_arn {
object.key("RoleArn").string(var_76.as_str());
}
if let Some(var_77) = &input.tags {
#[allow(unused_mut)]
let mut object_78 = object.key("Tags").start_object();
for (key_79, value_80) in var_77 {
{
object_78.key(key_79.as_str()).string(value_80.as_str());
}
}
object_78.finish();
}
if input.timeout != 0 {
object.key("Timeout").number(
#[allow(clippy::useless_conversion)]
aws_smithy_types::Number::NegInt((input.timeout).into()),
);
}
Ok(())
}
pub fn serialize_structure_crate_input_create_ruleset_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::CreateRulesetInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_81) = &input.description {
object.key("Description").string(var_81.as_str());
}
if let Some(var_82) = &input.name {
object.key("Name").string(var_82.as_str());
}
if let Some(var_83) = &input.rules {
let mut array_84 = object.key("Rules").start_array();
for item_85 in var_83 {
{
#[allow(unused_mut)]
let mut object_86 = array_84.value().start_object();
crate::json_ser::serialize_structure_crate_model_rule(&mut object_86, item_85)?;
object_86.finish();
}
}
array_84.finish();
}
if let Some(var_87) = &input.tags {
#[allow(unused_mut)]
let mut object_88 = object.key("Tags").start_object();
for (key_89, value_90) in var_87 {
{
object_88.key(key_89.as_str()).string(value_90.as_str());
}
}
object_88.finish();
}
if let Some(var_91) = &input.target_arn {
object.key("TargetArn").string(var_91.as_str());
}
Ok(())
}
pub fn serialize_structure_crate_input_create_schedule_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::CreateScheduleInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_92) = &input.cron_expression {
object.key("CronExpression").string(var_92.as_str());
}
if let Some(var_93) = &input.job_names {
let mut array_94 = object.key("JobNames").start_array();
for item_95 in var_93 {
{
array_94.value().string(item_95.as_str());
}
}
array_94.finish();
}
if let Some(var_96) = &input.name {
object.key("Name").string(var_96.as_str());
}
if let Some(var_97) = &input.tags {
#[allow(unused_mut)]
let mut object_98 = object.key("Tags").start_object();
for (key_99, value_100) in var_97 {
{
object_98.key(key_99.as_str()).string(value_100.as_str());
}
}
object_98.finish();
}
Ok(())
}
pub fn serialize_structure_crate_input_publish_recipe_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::PublishRecipeInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_101) = &input.description {
object.key("Description").string(var_101.as_str());
}
Ok(())
}
pub fn serialize_structure_crate_input_send_project_session_action_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::SendProjectSessionActionInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_102) = &input.client_session_id {
object.key("ClientSessionId").string(var_102.as_str());
}
if input.preview {
object.key("Preview").boolean(input.preview);
}
if let Some(var_103) = &input.recipe_step {
#[allow(unused_mut)]
let mut object_104 = object.key("RecipeStep").start_object();
crate::json_ser::serialize_structure_crate_model_recipe_step(&mut object_104, var_103)?;
object_104.finish();
}
if let Some(var_105) = &input.step_index {
object.key("StepIndex").number(
#[allow(clippy::useless_conversion)]
aws_smithy_types::Number::NegInt((*var_105).into()),
);
}
if let Some(var_106) = &input.view_frame {
#[allow(unused_mut)]
let mut object_107 = object.key("ViewFrame").start_object();
crate::json_ser::serialize_structure_crate_model_view_frame(&mut object_107, var_106)?;
object_107.finish();
}
Ok(())
}
pub fn serialize_structure_crate_input_start_project_session_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::StartProjectSessionInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if input.assume_control {
object.key("AssumeControl").boolean(input.assume_control);
}
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_108) = &input.tags {
#[allow(unused_mut)]
let mut object_109 = object.key("Tags").start_object();
for (key_110, value_111) in var_108 {
{
object_109.key(key_110.as_str()).string(value_111.as_str());
}
}
object_109.finish();
}
Ok(())
}
pub fn serialize_structure_crate_input_update_dataset_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::UpdateDatasetInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_112) = &input.format {
object.key("Format").string(var_112.as_str());
}
if let Some(var_113) = &input.format_options {
#[allow(unused_mut)]
let mut object_114 = object.key("FormatOptions").start_object();
crate::json_ser::serialize_structure_crate_model_format_options(&mut object_114, var_113)?;
object_114.finish();
}
if let Some(var_115) = &input.input {
#[allow(unused_mut)]
let mut object_116 = object.key("Input").start_object();
crate::json_ser::serialize_structure_crate_model_input(&mut object_116, var_115)?;
object_116.finish();
}
if let Some(var_117) = &input.path_options {
#[allow(unused_mut)]
let mut object_118 = object.key("PathOptions").start_object();
crate::json_ser::serialize_structure_crate_model_path_options(&mut object_118, var_117)?;
object_118.finish();
}
Ok(())
}
pub fn serialize_structure_crate_input_update_profile_job_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::UpdateProfileJobInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_119) = &input.configuration {
#[allow(unused_mut)]
let mut object_120 = object.key("Configuration").start_object();
crate::json_ser::serialize_structure_crate_model_profile_configuration(
&mut object_120,
var_119,
)?;
object_120.finish();
}
if let Some(var_121) = &input.encryption_key_arn {
object.key("EncryptionKeyArn").string(var_121.as_str());
}
if let Some(var_122) = &input.encryption_mode {
object.key("EncryptionMode").string(var_122.as_str());
}
if let Some(var_123) = &input.job_sample {
#[allow(unused_mut)]
let mut object_124 = object.key("JobSample").start_object();
crate::json_ser::serialize_structure_crate_model_job_sample(&mut object_124, var_123)?;
object_124.finish();
}
if let Some(var_125) = &input.log_subscription {
object.key("LogSubscription").string(var_125.as_str());
}
if input.max_capacity != 0 {
object.key("MaxCapacity").number(
#[allow(clippy::useless_conversion)]
aws_smithy_types::Number::NegInt((input.max_capacity).into()),
);
}
if input.max_retries != 0 {
object.key("MaxRetries").number(
#[allow(clippy::useless_conversion)]
aws_smithy_types::Number::NegInt((input.max_retries).into()),
);
}
if let Some(var_126) = &input.output_location {
#[allow(unused_mut)]
let mut object_127 = object.key("OutputLocation").start_object();
crate::json_ser::serialize_structure_crate_model_s3_location(&mut object_127, var_126)?;
object_127.finish();
}
if let Some(var_128) = &input.role_arn {
object.key("RoleArn").string(var_128.as_str());
}
if input.timeout != 0 {
object.key("Timeout").number(
#[allow(clippy::useless_conversion)]
aws_smithy_types::Number::NegInt((input.timeout).into()),
);
}
if let Some(var_129) = &input.validation_configurations {
let mut array_130 = object.key("ValidationConfigurations").start_array();
for item_131 in var_129 {
{
#[allow(unused_mut)]
let mut object_132 = array_130.value().start_object();
crate::json_ser::serialize_structure_crate_model_validation_configuration(
&mut object_132,
item_131,
)?;
object_132.finish();
}
}
array_130.finish();
}
Ok(())
}
pub fn serialize_structure_crate_input_update_project_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::UpdateProjectInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_133) = &input.role_arn {
object.key("RoleArn").string(var_133.as_str());
}
if let Some(var_134) = &input.sample {
#[allow(unused_mut)]
let mut object_135 = object.key("Sample").start_object();
crate::json_ser::serialize_structure_crate_model_sample(&mut object_135, var_134)?;
object_135.finish();
}
Ok(())
}
pub fn serialize_structure_crate_input_update_recipe_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::UpdateRecipeInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_136) = &input.description {
object.key("Description").string(var_136.as_str());
}
if let Some(var_137) = &input.steps {
let mut array_138 = object.key("Steps").start_array();
for item_139 in var_137 {
{
#[allow(unused_mut)]
let mut object_140 = array_138.value().start_object();
crate::json_ser::serialize_structure_crate_model_recipe_step(
&mut object_140,
item_139,
)?;
object_140.finish();
}
}
array_138.finish();
}
Ok(())
}
pub fn serialize_structure_crate_input_update_recipe_job_input(
object: &mut aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::input::UpdateRecipeJobInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
if let Some(var_141) = &input.data_catalog_outputs {
let mut array_142 = object.key("DataCatalogOutputs").start_array();
for item_143 in var_141 {
{
#[allow(unused_mut)]
let mut object_144 = array_142.value().start_object();
crate::json_ser::serialize_structure_crate_model_data_catalog_output(
&mut object_144,
item_143,
)?;
object_144.finish();
}
}
array_142.finish();
}
if let Some(var_145) = &input.database_outputs {
let mut array_146 = object.key("DatabaseOutputs").start_array();
for item_147 in var_145 {
{
#[allow(unused_mut)]
let mut object_148 = array_146.value().start_object();
crate::json_ser::serialize_structure_crate_model_database_output(
&mut object_148,
item_147,
)?;
object_148.finish();
}
}
array_146.finish();
}
if let Some(var_149) = &input.encryption_key_arn {
object.key("EncryptionKeyArn").string(var_149.as_str());
}
if let Some(var_150) = &input.encryption_mode {
object.key("EncryptionMode").string(var_150.as_str());
}
if let Some(var_151) = &input.log_subscription {
object.key("LogSubscription").string(var_151.as_str());
}
if input.max_capacity != 0 {
object.key("MaxCapacity").number(
#[allow(clippy::useless_conversion)]
aws_smithy_types::Number::NegInt((input.max_capacity).into()),
);
}
if input.max_retries != 0 {
object.key("MaxRetries").number(
#[allow(clippy::useless_conversion)]
aws_smithy_types::Number::NegInt((input.max_retries).into()),
);
}
if let Some(var_152) = &input.outputs {
let mut array_153 = object.key("Outputs").start_array();
for item_154 in var_152 {
{
#[allow(unused_mut)]
let mut object_155 = array_153.value().start_object();
crate::json_ser::serialize_structure_crate_model_output(&mut object_155, item_154)?;
object_155.finish();
}
}
array_153.finish();
}
if let Some(var_156) = &input.role_arn {
object.key("RoleArn").string(var_156.as_str());
}
if input.timeout != 0 {
object.key("Timeout").number(
#[allow(clippy::useless_conversion)]
aws_smithy_types::Number::NegInt((input.timeout).into()),
);
}
Ok(())
}
Trait Implementations§
source§impl AsRef<str> for LogSubscription
impl AsRef<str> for LogSubscription
source§impl Clone for LogSubscription
impl Clone for LogSubscription
source§fn clone(&self) -> LogSubscription
fn clone(&self) -> LogSubscription
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LogSubscription
impl Debug for LogSubscription
source§impl From<&str> for LogSubscription
impl From<&str> for LogSubscription
source§impl FromStr for LogSubscription
impl FromStr for LogSubscription
source§impl Hash for LogSubscription
impl Hash for LogSubscription
source§impl Ord for LogSubscription
impl Ord for LogSubscription
source§fn cmp(&self, other: &LogSubscription) -> Ordering
fn cmp(&self, other: &LogSubscription) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq<LogSubscription> for LogSubscription
impl PartialEq<LogSubscription> for LogSubscription
source§fn eq(&self, other: &LogSubscription) -> bool
fn eq(&self, other: &LogSubscription) -> bool
source§impl PartialOrd<LogSubscription> for LogSubscription
impl PartialOrd<LogSubscription> for LogSubscription
source§fn partial_cmp(&self, other: &LogSubscription) -> Option<Ordering>
fn partial_cmp(&self, other: &LogSubscription) -> 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 LogSubscription
impl StructuralEq for LogSubscription
impl StructuralPartialEq for LogSubscription
Auto Trait Implementations§
impl RefUnwindSafe for LogSubscription
impl Send for LogSubscription
impl Sync for LogSubscription
impl Unpin for LogSubscription
impl UnwindSafe for LogSubscription
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.