pub struct FrameworkMetadata { /* private fields */ }Expand description
Metadata about a software framework or third-party library that is being used with the SDK.
This is rendered into the user agent string (as lib/{name}/{version}) so that third-party
libraries built on top of the AWS SDK can self-identify in requests they make.
The name and version may only have alphanumeric characters and any of these characters:
!#$%&'*+-.^_`|~Spaces are not allowed.
Implementations§
Source§impl FrameworkMetadata
impl FrameworkMetadata
Sourcepub fn new(
name: impl Into<Cow<'static, str>>,
version: Option<impl Into<Cow<'static, str>>>,
) -> Result<FrameworkMetadata, InvalidFrameworkMetadata>
pub fn new( name: impl Into<Cow<'static, str>>, version: Option<impl Into<Cow<'static, str>>>, ) -> Result<FrameworkMetadata, InvalidFrameworkMetadata>
Creates new FrameworkMetadata.
This will return an InvalidFrameworkMetadata error if the given name or version doesn’t
meet the character requirements. See FrameworkMetadata for details on these requirements.
Trait Implementations§
Source§impl Clone for FrameworkMetadata
impl Clone for FrameworkMetadata
Source§fn clone(&self) -> FrameworkMetadata
fn clone(&self) -> FrameworkMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FrameworkMetadata
impl Debug for FrameworkMetadata
Source§impl Display for FrameworkMetadata
impl Display for FrameworkMetadata
impl Eq for FrameworkMetadata
Source§impl PartialEq for FrameworkMetadata
impl PartialEq for FrameworkMetadata
Source§impl Storable for FrameworkMetadata
impl Storable for FrameworkMetadata
Source§type Storer = StoreAppend<FrameworkMetadata>
type Storer = StoreAppend<FrameworkMetadata>
Specify how an item is stored in the config bag, e.g.
StoreReplace and StoreAppendimpl StructuralPartialEq for FrameworkMetadata
Auto Trait Implementations§
impl Freeze for FrameworkMetadata
impl RefUnwindSafe for FrameworkMetadata
impl Send for FrameworkMetadata
impl Sync for FrameworkMetadata
impl Unpin for FrameworkMetadata
impl UnsafeUnpin for FrameworkMetadata
impl UnwindSafe for FrameworkMetadata
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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>
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.