pub struct AccountConfigV2 {
pub type: AccountTypeV2,
pub sub_type: Option<Vec<AccountIdentifierV2>>,
pub ids: Option<Vec<AccountIdentifierV2>>,
pub operator: PolicyOperatorV2,
pub match_from: Option<MatchFrom>,
}Expand description
AccountConfigV2 : Policy source/destination configuration
Fields§
§type: AccountTypeV2§sub_type: Option<Vec<AccountIdentifierV2>>§ids: Option<Vec<AccountIdentifierV2>>§operator: PolicyOperatorV2§match_from: Option<MatchFrom>Whether to match from account or source
Implementations§
Source§impl AccountConfigV2
impl AccountConfigV2
Sourcepub fn new(type: AccountTypeV2, operator: PolicyOperatorV2) -> AccountConfigV2
pub fn new(type: AccountTypeV2, operator: PolicyOperatorV2) -> AccountConfigV2
Policy source/destination configuration
Trait Implementations§
Source§impl Clone for AccountConfigV2
impl Clone for AccountConfigV2
Source§fn clone(&self) -> AccountConfigV2
fn clone(&self) -> AccountConfigV2
Returns a duplicate of the value. Read more
1.0.0 · 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 AccountConfigV2
impl Debug for AccountConfigV2
Source§impl Default for AccountConfigV2
impl Default for AccountConfigV2
Source§fn default() -> AccountConfigV2
fn default() -> AccountConfigV2
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccountConfigV2
impl<'de> Deserialize<'de> for AccountConfigV2
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 AccountConfigV2
impl PartialEq for AccountConfigV2
Source§impl Serialize for AccountConfigV2
impl Serialize for AccountConfigV2
impl StructuralPartialEq for AccountConfigV2
Auto Trait Implementations§
impl Freeze for AccountConfigV2
impl RefUnwindSafe for AccountConfigV2
impl Send for AccountConfigV2
impl Sync for AccountConfigV2
impl Unpin for AccountConfigV2
impl UnwindSafe for AccountConfigV2
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