Enum openstack_sdk::types::NameOrId
source · pub enum NameOrId {
Id(String),
Name(String),
}Expand description
A reference to a resource by either its Name or ID.
Variants§
Trait Implementations§
source§impl PartialEq for NameOrId
impl PartialEq for NameOrId
impl Eq for NameOrId
impl StructuralPartialEq for NameOrId
Auto Trait Implementations§
impl RefUnwindSafe for NameOrId
impl Send for NameOrId
impl Sync for NameOrId
impl Unpin for NameOrId
impl UnwindSafe for NameOrId
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.