pub struct UnknownVersion {
pub function: String,
pub id: String,
}Expand description
A Function operation named a version id the function has no record of
(rollback/set_alias). A typed error so a caller can distinguish it (e.g.
map it to a 404) instead of string-matching a message.
Fields§
§function: StringThe function the operation was on.
id: StringThe version id that was not found.
Trait Implementations§
Source§impl Clone for UnknownVersion
impl Clone for UnknownVersion
Source§fn clone(&self) -> UnknownVersion
fn clone(&self) -> UnknownVersion
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 UnknownVersion
impl Debug for UnknownVersion
Source§impl Display for UnknownVersion
impl Display for UnknownVersion
impl Eq for UnknownVersion
Source§impl Error for UnknownVersion
impl Error for UnknownVersion
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for UnknownVersion
impl PartialEq for UnknownVersion
impl StructuralPartialEq for UnknownVersion
Auto Trait Implementations§
impl Freeze for UnknownVersion
impl RefUnwindSafe for UnknownVersion
impl Send for UnknownVersion
impl Sync for UnknownVersion
impl Unpin for UnknownVersion
impl UnsafeUnpin for UnknownVersion
impl UnwindSafe for UnknownVersion
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,
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.