Skip to main content

CreateBasinIntent

Enum CreateBasinIntent 

Source
pub enum CreateBasinIntent {
    CreateOnly {
        config: BasinConfig,
        request_token: Option<RequestToken>,
    },
    CreateOrReconfigure {
        reconfiguration: BasinReconfiguration,
    },
}
Expand description

Basin creation operation intent.

Separates POST-style create-only requests, which carry a complete creation config and optional idempotency token, from PUT-style create-or-reconfigure requests, which carry only a reconfiguration patch.

Variants§

§

CreateOnly

Create a new basin.

HTTP POST semantics: idempotent if a request token is provided and the basin was previously created using the same token and config.

Fields

§config: BasinConfig

Complete basin configuration for a new basin.

§request_token: Option<RequestToken>

Optional request token used to make create retries idempotent.

§

CreateOrReconfigure

Create a new basin or reconfigure it if it already exists.

HTTP PUT semantics: always idempotent. When the basin already exists, unspecified fields in the reconfiguration preserve the existing config.

Fields

§reconfiguration: BasinReconfiguration

Basin reconfiguration patch to apply on create-or-reconfigure.

Trait Implementations§

Source§

impl Debug for CreateBasinIntent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.