#[non_exhaustive]pub struct ServiceVersion(/* private fields */);Expand description
The Smithy service shape’s version, stored in a [ConfigBag] by generated clients.
awsQuery puts this on the wire as the Version= form parameter, so it is a request-shaping
fact that only the model knows. Stored for the same reason as ServiceShapeName: a customer
can select awsQuery via Config::builder().protocol(..) on a client generated for some other
protocol, and could not otherwise supply the right value.
Implementations§
Trait Implementations§
Source§impl Clone for ServiceVersion
impl Clone for ServiceVersion
Source§fn clone(&self) -> ServiceVersion
fn clone(&self) -> ServiceVersion
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 Debug for ServiceVersion
impl Debug for ServiceVersion
Source§impl PartialEq for ServiceVersion
impl PartialEq for ServiceVersion
Source§impl Storable for ServiceVersion
impl Storable for ServiceVersion
Source§type Storer = StoreReplace<ServiceVersion>
type Storer = StoreReplace<ServiceVersion>
Specify how an item is stored in the config bag, e.g. [
StoreReplace] and [StoreAppend]impl Eq for ServiceVersion
impl StructuralPartialEq for ServiceVersion
Auto Trait Implementations§
impl Freeze for ServiceVersion
impl RefUnwindSafe for ServiceVersion
impl Send for ServiceVersion
impl Sync for ServiceVersion
impl Unpin for ServiceVersion
impl UnsafeUnpin for ServiceVersion
impl UnwindSafe for ServiceVersion
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§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.