pub struct WorkerR2Credential {
pub access_key_id: String,
pub secret_ciphertext: String,
}Expand description
One R2 token as it travels to the worker: the key id in the clear, the secret only as KMS ciphertext, so a leaked manifest row is not a usable credential.
Fields§
§access_key_id: String§secret_ciphertext: StringTrait Implementations§
Source§impl Clone for WorkerR2Credential
impl Clone for WorkerR2Credential
Source§fn clone(&self) -> WorkerR2Credential
fn clone(&self) -> WorkerR2Credential
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<'de> Deserialize<'de> for WorkerR2Credential
impl<'de> Deserialize<'de> for WorkerR2Credential
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 WorkerR2Credential
Source§impl PartialEq for WorkerR2Credential
impl PartialEq for WorkerR2Credential
Source§impl Serialize for WorkerR2Credential
impl Serialize for WorkerR2Credential
impl StructuralPartialEq for WorkerR2Credential
Auto Trait Implementations§
impl Freeze for WorkerR2Credential
impl RefUnwindSafe for WorkerR2Credential
impl Send for WorkerR2Credential
impl Sync for WorkerR2Credential
impl Unpin for WorkerR2Credential
impl UnsafeUnpin for WorkerR2Credential
impl UnwindSafe for WorkerR2Credential
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