#[non_exhaustive]pub struct RewriteSession {
pub kind: String,
pub holder: String,
pub lease_expires_at: String,
pub new_key_id: String,
pub staged_ids: Vec<String>,
pub source_items: u64,
pub new_header: Option<Box<RawValue>>,
}Expand description
An open migration or rotation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: Stringmigrate or rotate.
holder: StringThe public id of the API key that holds the lease.
lease_expires_at: StringWhen the lease ends, RFC 3339.
new_key_id: StringThe new key’s id.
staged_ids: Vec<String>Ids already staged under the new key.
source_items: u64How many items the workspace held when it began.
new_header: Option<Box<RawValue>>The new header, which the new words unlock (PLAN-00010 D-05).
Trait Implementations§
Source§impl Clone for RewriteSession
impl Clone for RewriteSession
Source§impl Debug for RewriteSession
impl Debug for RewriteSession
Source§impl<'de> Deserialize<'de> for RewriteSession
impl<'de> Deserialize<'de> for RewriteSession
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
Auto Trait Implementations§
impl Freeze for RewriteSession
impl RefUnwindSafe for RewriteSession
impl Send for RewriteSession
impl Sync for RewriteSession
impl Unpin for RewriteSession
impl UnsafeUnpin for RewriteSession
impl UnwindSafe for RewriteSession
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