pub enum OperationCondition {
Always,
Secured,
HasRequestBody,
HasPathParameter,
UnsafeMethod,
HasIdempotencyKey,
}Expand description
A property of an operation that decides whether a rule applies to it.
Variants§
Always
Every operation.
Secured
The operation’s own security, or the document’s when the operation has none, contains a
requirement that names a scheme. An operation that also accepts anonymous calls still
counts, because a bad credential is rejected.
HasRequestBody
The operation declares a request body.
HasPathParameter
The path template has a parameter, such as /items/{id}.
UnsafeMethod
The method is not safe in the RFC 9110 sense: POST, PUT, PATCH, or DELETE.
HasIdempotencyKey
The operation declares an Idempotency-Key header parameter.
Trait Implementations§
Source§impl Clone for OperationCondition
impl Clone for OperationCondition
impl Copy for OperationCondition
Source§impl Debug for OperationCondition
impl Debug for OperationCondition
impl Eq for OperationCondition
Source§impl PartialEq for OperationCondition
impl PartialEq for OperationCondition
impl StructuralPartialEq for OperationCondition
Auto Trait Implementations§
impl Freeze for OperationCondition
impl RefUnwindSafe for OperationCondition
impl Send for OperationCondition
impl Sync for OperationCondition
impl Unpin for OperationCondition
impl UnsafeUnpin for OperationCondition
impl UnwindSafe for OperationCondition
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.