pub struct DestinationConfigV2 {
pub type: AccountTypeV2,
pub sub_type: Option<Vec<AccountIdentifierV2>>,
pub ids: Option<Vec<AccountIdentifierV2>>,
pub operator: PolicyOperatorV2,
pub match_from: Option<MatchFrom>,
pub address_type: AddressType,
}Expand description
DestinationConfigV2 : Destination configuration for policy rules
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
address_type: AddressTypeType of destination addresses allowed
Implementations§
Source§impl DestinationConfigV2
impl DestinationConfigV2
Sourcepub fn new(
type: AccountTypeV2,
operator: PolicyOperatorV2,
address_type: AddressType,
) -> DestinationConfigV2
pub fn new( type: AccountTypeV2, operator: PolicyOperatorV2, address_type: AddressType, ) -> DestinationConfigV2
Destination configuration for policy rules
Trait Implementations§
Source§impl Clone for DestinationConfigV2
impl Clone for DestinationConfigV2
Source§fn clone(&self) -> DestinationConfigV2
fn clone(&self) -> DestinationConfigV2
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 DestinationConfigV2
impl Debug for DestinationConfigV2
Source§impl Default for DestinationConfigV2
impl Default for DestinationConfigV2
Source§fn default() -> DestinationConfigV2
fn default() -> DestinationConfigV2
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DestinationConfigV2
impl<'de> Deserialize<'de> for DestinationConfigV2
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 DestinationConfigV2
impl PartialEq for DestinationConfigV2
Source§impl Serialize for DestinationConfigV2
impl Serialize for DestinationConfigV2
impl StructuralPartialEq for DestinationConfigV2
Auto Trait Implementations§
impl Freeze for DestinationConfigV2
impl RefUnwindSafe for DestinationConfigV2
impl Send for DestinationConfigV2
impl Sync for DestinationConfigV2
impl Unpin for DestinationConfigV2
impl UnwindSafe for DestinationConfigV2
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