pub enum Logging {
Disabled {
disabled: LoggingDisabled,
},
CloudWatch {
cloud_watch: CloudWatchLogging,
},
}Expand description
Logging, the model’s tagged union: exactly one of disabled or cloudWatch.
The same wire shape as PortSpecification and modelled the same way: a Smithy union
serialises as one key — {"disabled": {}} or {"cloudWatch": {...}} — not a
discriminator field, so #[serde(untagged)] plus a rename per variant is what keeps
serde’s default {"Disabled": ...} spelling off the wire.
Both CreateMicrovmImageRequest and RunMicrovmRequest carry a logging member of
this shape in the model; this client binds only the image-build side (issue #98 — build
logs are where the three-VM/three-stream topology and the exact-name collision live).
Variants§
Disabled
LoggingDisabled: no logs at all. An empty struct rather than a unit variant for
AllPorts’s reason — the wire form is {} and a unit serialises to null,
which the service rejects as a malformed union member.
Fields
disabled: LoggingDisabledCloudWatch
CloudWatchLogging: a caller-named group and, optionally, stream.
Fields
cloud_watch: CloudWatchLoggingImplementations§
Trait Implementations§
impl StructuralPartialEq for Logging
Auto Trait Implementations§
impl Freeze for Logging
impl RefUnwindSafe for Logging
impl Send for Logging
impl Sync for Logging
impl Unpin for Logging
impl UnsafeUnpin for Logging
impl UnwindSafe for Logging
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more