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<DeprecationStrategy> for DeprecationStrategy
impl PartialEq<DeprecationStrategy> 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 ==
.