#[non_exhaustive]pub enum VendorPolicy {
Any,
MustMatch(String),
AllowList(Vec<String>),
}Expand description
Vendor matching policy for GTS ID validation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Any
Accept any vendor (no vendor enforcement).
MustMatch(String)
All GTS IDs must match this exact vendor (example vendors are always tolerated).
AllowList(Vec<String>)
All GTS IDs must match one of the listed vendors (example vendors are always tolerated).
Trait Implementations§
Source§impl Clone for VendorPolicy
impl Clone for VendorPolicy
Source§fn clone(&self) -> VendorPolicy
fn clone(&self) -> VendorPolicy
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 VendorPolicy
impl Debug for VendorPolicy
Source§impl Default for VendorPolicy
impl Default for VendorPolicy
Source§fn default() -> VendorPolicy
fn default() -> VendorPolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VendorPolicy
impl RefUnwindSafe for VendorPolicy
impl Send for VendorPolicy
impl Sync for VendorPolicy
impl Unpin for VendorPolicy
impl UnsafeUnpin for VendorPolicy
impl UnwindSafe for VendorPolicy
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