pub enum DeprecationStrategy {
Allow,
Deny,
Warn,
}
Expand description
The available deprecation strategies.
Variants§
Allow
Allow use of deprecated items in queries, and say nothing.
Deny
Fail compilation if a deprecated item is used.
Warn
Allow use of deprecated items in queries, but warn about them (default).
Trait Implementations§
source§impl Clone for DeprecationStrategy
impl Clone for DeprecationStrategy
source§fn clone(&self) -> DeprecationStrategy
fn clone(&self) -> DeprecationStrategy
Returns a copy 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 DeprecationStrategy
impl Debug for DeprecationStrategy
source§impl Default for DeprecationStrategy
impl Default for DeprecationStrategy
source§fn default() -> DeprecationStrategy
fn default() -> DeprecationStrategy
Returns the “default value” for a type. Read more
source§impl FromStr for DeprecationStrategy
impl FromStr for DeprecationStrategy
source§impl PartialEq for DeprecationStrategy
impl PartialEq for DeprecationStrategy
source§fn eq(&self, other: &DeprecationStrategy) -> bool
fn eq(&self, other: &DeprecationStrategy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DeprecationStrategy
impl StructuralPartialEq for DeprecationStrategy
Auto Trait Implementations§
impl Freeze for DeprecationStrategy
impl RefUnwindSafe for DeprecationStrategy
impl Send for DeprecationStrategy
impl Sync for DeprecationStrategy
impl Unpin for DeprecationStrategy
impl UnwindSafe for DeprecationStrategy
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