#[non_exhaustive]pub struct PolicySetInput {
pub org: Option<String>,
pub namespace: Option<String>,
pub policy_id: String,
pub effect: PolicySetInputEffect,
pub actions: Vec<String>,
pub condition: HashMap<String, Value>,
pub description: Option<String>,
pub enabled: Option<bool>,
pub mode: Option<PolicySetInputMode>,
pub created_by: Option<String>,
}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.org: Option<String>§namespace: Option<String>§policy_id: String§effect: PolicySetInputEffect§actions: Vec<String>§condition: HashMap<String, Value>§description: Option<String>§enabled: Option<bool>§mode: Option<PolicySetInputMode>§created_by: Option<String>Implementations§
Source§impl PolicySetInput
impl PolicySetInput
pub fn new( policy_id: impl Into<String>, effect: PolicySetInputEffect, actions: impl IntoIterator<Item = impl Into<String>>, condition: HashMap<String, Value>, ) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
pub fn enabled(self, enabled: bool) -> Self
pub fn mode(self, mode: PolicySetInputMode) -> Self
pub fn created_by(self, created_by: impl Into<String>) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<PolicySetOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for PolicySetInput
impl Clone for PolicySetInput
Source§impl Debug for PolicySetInput
impl Debug for PolicySetInput
Source§impl<'de> Deserialize<'de> for PolicySetInput
impl<'de> Deserialize<'de> for PolicySetInput
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 PolicySetInput
impl PartialEq for PolicySetInput
Source§impl Serialize for PolicySetInput
impl Serialize for PolicySetInput
impl StructuralPartialEq for PolicySetInput
Auto Trait Implementations§
impl Forget for PolicySetInput
impl Freeze for PolicySetInput
impl Move for PolicySetInput
impl RefUnwindSafe for PolicySetInput
impl Send for PolicySetInput
impl Sync for PolicySetInput
impl Unpin for PolicySetInput
impl UnsafeUnpin for PolicySetInput
impl UnwindSafe for PolicySetInput
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