#[repr(i32)]pub enum OptionsScope {
File,
Package,
}
Expand description
Whether to apply the options only to this file, or for the entire package (and its subpackages)
Variants§
File
Apply the options for this file only (default)
Package
Apply the options for the entire package and its subpackages.
Implementations§
Trait Implementations§
source§impl Clone for OptionsScope
impl Clone for OptionsScope
source§fn clone(&self) -> OptionsScope
fn clone(&self) -> OptionsScope
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 OptionsScope
impl Debug for OptionsScope
source§impl Default for OptionsScope
impl Default for OptionsScope
source§fn default() -> OptionsScope
fn default() -> OptionsScope
Returns the “default value” for a type. Read more
source§impl From<OptionsScope> for i32
impl From<OptionsScope> for i32
source§fn from(value: OptionsScope) -> i32
fn from(value: OptionsScope) -> i32
Converts to this type from the input type.
source§impl Hash for OptionsScope
impl Hash for OptionsScope
source§impl Ord for OptionsScope
impl Ord for OptionsScope
source§fn cmp(&self, other: &OptionsScope) -> Ordering
fn cmp(&self, other: &OptionsScope) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<OptionsScope> for OptionsScope
impl PartialEq<OptionsScope> for OptionsScope
source§fn eq(&self, other: &OptionsScope) -> bool
fn eq(&self, other: &OptionsScope) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<OptionsScope> for OptionsScope
impl PartialOrd<OptionsScope> for OptionsScope
source§fn partial_cmp(&self, other: &OptionsScope) -> Option<Ordering>
fn partial_cmp(&self, other: &OptionsScope) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for OptionsScope
impl Eq for OptionsScope
impl StructuralEq for OptionsScope
impl StructuralPartialEq for OptionsScope
Auto Trait Implementations§
impl RefUnwindSafe for OptionsScope
impl Send for OptionsScope
impl Sync for OptionsScope
impl Unpin for OptionsScope
impl UnwindSafe for OptionsScope
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request