pub struct RestoreProtectionKey(/* private fields */);Expand description
Typed identity for the temporary protection owned by one restore plan.
Implementations§
Source§impl RestoreProtectionKey
impl RestoreProtectionKey
pub fn new(value: impl Into<String>) -> Result<Self, DomainError>
pub fn for_plan_digest(plan_digest: &str) -> Result<Self, DomainError>
pub fn as_idempotency_key(&self) -> &ArtifactIdempotencyKey
pub fn into_idempotency_key(self) -> ArtifactIdempotencyKey
Trait Implementations§
Source§impl Clone for RestoreProtectionKey
impl Clone for RestoreProtectionKey
Source§impl Debug for RestoreProtectionKey
impl Debug for RestoreProtectionKey
Source§impl<'de> Deserialize<'de> for RestoreProtectionKey
impl<'de> Deserialize<'de> for RestoreProtectionKey
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
impl Eq for RestoreProtectionKey
Source§impl From<RestoreProtectionKey> for String
impl From<RestoreProtectionKey> for String
Source§fn from(value: RestoreProtectionKey) -> Self
fn from(value: RestoreProtectionKey) -> Self
Converts to this type from the input type.
Source§impl Hash for RestoreProtectionKey
impl Hash for RestoreProtectionKey
Source§impl PartialEq for RestoreProtectionKey
impl PartialEq for RestoreProtectionKey
Source§impl Serialize for RestoreProtectionKey
impl Serialize for RestoreProtectionKey
impl StructuralPartialEq for RestoreProtectionKey
Source§impl TryFrom<ArtifactIdempotencyKey> for RestoreProtectionKey
impl TryFrom<ArtifactIdempotencyKey> for RestoreProtectionKey
Source§type Error = DomainError
type Error = DomainError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for RestoreProtectionKey
impl RefUnwindSafe for RestoreProtectionKey
impl Send for RestoreProtectionKey
impl Sync for RestoreProtectionKey
impl Unpin for RestoreProtectionKey
impl UnsafeUnpin for RestoreProtectionKey
impl UnwindSafe for RestoreProtectionKey
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