pub struct ContractAuthorizationAlternative {
pub scopes: &'static [&'static str],
}Expand description
One representable OpenAPI Security Requirement alternative.
Every scope in an alternative is required. Separate alternatives are ORed.
Fields§
§scopes: &'static [&'static str]Implementations§
Source§impl ContractAuthorizationAlternative
impl ContractAuthorizationAlternative
pub const fn new( scopes: &'static [&'static str], ) -> ContractAuthorizationAlternative
Trait Implementations§
Source§impl Clone for ContractAuthorizationAlternative
impl Clone for ContractAuthorizationAlternative
Source§fn clone(&self) -> ContractAuthorizationAlternative
fn clone(&self) -> ContractAuthorizationAlternative
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 moreimpl Copy for ContractAuthorizationAlternative
impl Eq for ContractAuthorizationAlternative
impl StructuralPartialEq for ContractAuthorizationAlternative
Auto Trait Implementations§
impl Freeze for ContractAuthorizationAlternative
impl RefUnwindSafe for ContractAuthorizationAlternative
impl Send for ContractAuthorizationAlternative
impl Sync for ContractAuthorizationAlternative
impl Unpin for ContractAuthorizationAlternative
impl UnsafeUnpin for ContractAuthorizationAlternative
impl UnwindSafe for ContractAuthorizationAlternative
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.