pub struct PolicyUpdateKeys {
pub allowed_algorithms: Option<Vec<String>>,
pub allowed_key_names: Option<Vec<String>>,
pub allowed_key_types: Option<Vec<String>>,
pub id: String,
pub json: Option<bool>,
pub max_rotation_interval_days: Option<i32>,
pub object_types: Option<Vec<String>>,
pub path: Option<String>,
pub token: Option<String>,
pub uid_token: Option<String>,
}Fields§
§allowed_algorithms: Option<Vec<String>>Specify allowed key algorithms (e.g., [RSA2048,AES128GCM])
allowed_key_names: Option<Vec<String>>Specify allowed protection key names. To enforce using the account’s default protection key, use ‘default-account-key’
allowed_key_types: Option<Vec<String>>Specify allowed key protection types (dfc, classic-key)
id: StringPolicy id
json: Option<bool>Set output format to JSON
max_rotation_interval_days: Option<i32>Set the maximum rotation interval for automatic key rotation.
object_types: Option<Vec<String>>The object type this policy will apply to (items, targets)
path: Option<String>The path the policy refers to
token: Option<String>Authentication token (see /auth and /configure)
uid_token: Option<String>The universal identity token, Required only for universal_identity authentication
Implementations§
Source§impl PolicyUpdateKeys
impl PolicyUpdateKeys
pub fn new(id: String) -> PolicyUpdateKeys
Trait Implementations§
Source§impl Clone for PolicyUpdateKeys
impl Clone for PolicyUpdateKeys
Source§fn clone(&self) -> PolicyUpdateKeys
fn clone(&self) -> PolicyUpdateKeys
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 PolicyUpdateKeys
impl Debug for PolicyUpdateKeys
Source§impl Default for PolicyUpdateKeys
impl Default for PolicyUpdateKeys
Source§fn default() -> PolicyUpdateKeys
fn default() -> PolicyUpdateKeys
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PolicyUpdateKeys
impl<'de> Deserialize<'de> for PolicyUpdateKeys
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
Source§impl PartialEq for PolicyUpdateKeys
impl PartialEq for PolicyUpdateKeys
Source§fn eq(&self, other: &PolicyUpdateKeys) -> bool
fn eq(&self, other: &PolicyUpdateKeys) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PolicyUpdateKeys
impl Serialize for PolicyUpdateKeys
impl StructuralPartialEq for PolicyUpdateKeys
Auto Trait Implementations§
impl Freeze for PolicyUpdateKeys
impl RefUnwindSafe for PolicyUpdateKeys
impl Send for PolicyUpdateKeys
impl Sync for PolicyUpdateKeys
impl Unpin for PolicyUpdateKeys
impl UnsafeUnpin for PolicyUpdateKeys
impl UnwindSafe for PolicyUpdateKeys
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