[−][src]Trait oxide_auth::endpoint::UniqueValue
Return a reference to value in a collection if it is the only one.
For example, a vector of string like types returns a reference to its first
element if there are no other, else it returns None.
If this were done with slices, that would require choosing a particular
value type of the underlying slice e.g. [String].
Required methods
fn get_unique(&self) -> Option<&str>
Borrow the unique value reference.
Implementations on Foreign Types
impl UniqueValue for str[src]
fn get_unique(&self) -> Option<&str>[src]
impl UniqueValue for String[src]
fn get_unique(&self) -> Option<&str>[src]
impl<'a, V: ?Sized> UniqueValue for &'a V where
V: AsRef<str>, [src]
V: AsRef<str>,