pub enum SectionResult<T> {
Value {
value: T,
},
Denied {
iam_action: String,
},
Unsupported {
reason: String,
},
Deferred {
reason: String,
},
}Expand description
The result of fetching one bucket property section.
Serializes with tag = "kind" and rename_all = "camelCase" so the
frontend discriminates by section.kind.
OCP: adding e.g. Pending is one new variant here.
Variants§
Value
The API succeeded and returned a value.
Fields
§
value: TDenied
AccessDenied — IAM policy blocked this section.
iam_action is the IAM action string from the error when available
(e.g. "s3:GetBucketVersioning").
Unsupported
The provider does not implement this API.
Deferred
Intentionally omitted from v1 (per design non-goals).
Trait Implementations§
Source§impl<T: Clone> Clone for SectionResult<T>
impl<T: Clone> Clone for SectionResult<T>
Source§fn clone(&self) -> SectionResult<T>
fn clone(&self) -> SectionResult<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for SectionResult<T>
impl<T: Debug> Debug for SectionResult<T>
Source§impl<'de, T> Deserialize<'de> for SectionResult<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for SectionResult<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: PartialEq> PartialEq for SectionResult<T>
impl<T: PartialEq> PartialEq for SectionResult<T>
Source§impl<T> Serialize for SectionResult<T>where
T: Serialize,
impl<T> Serialize for SectionResult<T>where
T: Serialize,
impl<T> StructuralPartialEq for SectionResult<T>
Auto Trait Implementations§
impl<T> Freeze for SectionResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for SectionResult<T>where
T: RefUnwindSafe,
impl<T> Send for SectionResult<T>where
T: Send,
impl<T> Sync for SectionResult<T>where
T: Sync,
impl<T> Unpin for SectionResult<T>where
T: Unpin,
impl<T> UnsafeUnpin for SectionResult<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for SectionResult<T>where
T: UnwindSafe,
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.