pub struct PolicyCreateKeys {
pub allowed_algorithms: Option<Vec<String>>,
pub allowed_key_names: Option<Vec<String>>,
pub allowed_key_types: Option<Vec<String>>,
pub json: Option<bool>,
pub max_rotation_interval_days: Option<i32>,
pub object_types: Option<Vec<String>>,
pub path: 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)
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 types this policy will apply to (items, targets). If not provided, defaults to [items, targets].
path: StringThe 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 PolicyCreateKeys
impl PolicyCreateKeys
pub fn new(path: String) -> PolicyCreateKeys
Trait Implementations§
Source§impl Clone for PolicyCreateKeys
impl Clone for PolicyCreateKeys
Source§fn clone(&self) -> PolicyCreateKeys
fn clone(&self) -> PolicyCreateKeys
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 PolicyCreateKeys
impl Debug for PolicyCreateKeys
Source§impl Default for PolicyCreateKeys
impl Default for PolicyCreateKeys
Source§fn default() -> PolicyCreateKeys
fn default() -> PolicyCreateKeys
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PolicyCreateKeys
impl<'de> Deserialize<'de> for PolicyCreateKeys
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 PolicyCreateKeys
impl PartialEq for PolicyCreateKeys
Source§fn eq(&self, other: &PolicyCreateKeys) -> bool
fn eq(&self, other: &PolicyCreateKeys) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PolicyCreateKeys
impl Serialize for PolicyCreateKeys
impl StructuralPartialEq for PolicyCreateKeys
Auto Trait Implementations§
impl Freeze for PolicyCreateKeys
impl RefUnwindSafe for PolicyCreateKeys
impl Send for PolicyCreateKeys
impl Sync for PolicyCreateKeys
impl Unpin for PolicyCreateKeys
impl UnsafeUnpin for PolicyCreateKeys
impl UnwindSafe for PolicyCreateKeys
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