pub enum ResourceGroup<'a> {
Named(&'a UniqueIdent),
Default,
}Expand description
Variants§
Named(&'a UniqueIdent)
Default
Implementations§
Source§impl<'a> ResourceGroup<'a>
impl<'a> ResourceGroup<'a>
Sourcepub fn name(self) -> Option<&'a UniqueIdent>
pub fn name(self) -> Option<&'a UniqueIdent>
Returns the resource name for a Named group.
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Returns whether this group represents operations and types without a resource name.
Trait Implementations§
Source§impl<'a> Clone for ResourceGroup<'a>
impl<'a> Clone for ResourceGroup<'a>
Source§fn clone(&self) -> ResourceGroup<'a>
fn clone(&self) -> ResourceGroup<'a>
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 moreSource§impl<'a> Debug for ResourceGroup<'a>
impl<'a> Debug for ResourceGroup<'a>
Source§impl<'a> Default for ResourceGroup<'a>
impl<'a> Default for ResourceGroup<'a>
Source§fn default() -> ResourceGroup<'a>
fn default() -> ResourceGroup<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> Hash for ResourceGroup<'a>
impl<'a> Hash for ResourceGroup<'a>
Source§impl<'a> Ord for ResourceGroup<'a>
impl<'a> Ord for ResourceGroup<'a>
Source§fn cmp(&self, other: &ResourceGroup<'a>) -> Ordering
fn cmp(&self, other: &ResourceGroup<'a>) -> Ordering
1.21.0 (const: unstable) · 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<'a> PartialEq for ResourceGroup<'a>
impl<'a> PartialEq for ResourceGroup<'a>
Source§fn eq(&self, other: &ResourceGroup<'a>) -> bool
fn eq(&self, other: &ResourceGroup<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> PartialOrd for ResourceGroup<'a>
impl<'a> PartialOrd for ResourceGroup<'a>
impl<'a> Copy for ResourceGroup<'a>
impl<'a> Eq for ResourceGroup<'a>
impl<'a> StructuralPartialEq for ResourceGroup<'a>
Auto Trait Implementations§
impl<'a> Freeze for ResourceGroup<'a>
impl<'a> RefUnwindSafe for ResourceGroup<'a>
impl<'a> Send for ResourceGroup<'a>
impl<'a> Sync for ResourceGroup<'a>
impl<'a> Unpin for ResourceGroup<'a>
impl<'a> UnsafeUnpin for ResourceGroup<'a>
impl<'a> UnwindSafe for ResourceGroup<'a>
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more