pub struct SecretBinding<'a> {
pub namespace: &'a str,
pub provider: &'a str,
}Expand description
The context a ciphertext is bound to.
Both fields enter the AEAD’s additional authenticated data, so a ciphertext only opens under the exact pair it was sealed for.
Fields§
§namespace: &'a strOwning namespace (the tenant).
provider: &'a strProvider the key is for ("openai", "anthropic").
Trait Implementations§
Source§impl<'a> Clone for SecretBinding<'a>
impl<'a> Clone for SecretBinding<'a>
impl<'a> Copy for SecretBinding<'a>
Source§impl<'a> Debug for SecretBinding<'a>
impl<'a> Debug for SecretBinding<'a>
impl<'a> Eq for SecretBinding<'a>
Source§impl<'a> PartialEq for SecretBinding<'a>
impl<'a> PartialEq for SecretBinding<'a>
impl<'a> StructuralPartialEq for SecretBinding<'a>
Auto Trait Implementations§
impl<'a> Freeze for SecretBinding<'a>
impl<'a> RefUnwindSafe for SecretBinding<'a>
impl<'a> Send for SecretBinding<'a>
impl<'a> Sync for SecretBinding<'a>
impl<'a> Unpin for SecretBinding<'a>
impl<'a> UnsafeUnpin for SecretBinding<'a>
impl<'a> UnwindSafe for SecretBinding<'a>
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