[−][src]Struct openstack::EndpointFilters
Endpoint filters for looking up endpoints.
Fields (Non-exhaustive)
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.interfaces: ValidInterfaces
Acceptable endpoint interfaces in the reverse priority order.
region: Option<String>
Cloud region.
Implementations
impl EndpointFilters
[src]
pub fn new<I, S>(interfaces: I, region: S) -> EndpointFilters where
I: IntoIterator<Item = InterfaceType>,
S: Into<String>,
[src]
I: IntoIterator<Item = InterfaceType>,
S: Into<String>,
Create filters with interfaces and region.
Hint: use default
to create empty filters (and with_*
methods to populate it).
pub fn check(&self, endpoint: &Endpoint) -> bool
[src]
Whether the filters match the provided endpoint.
pub fn find_in_catalog(
&self,
catalog: &[CatalogRecord],
service_type: &str
) -> Result<Url, Error>
[src]
&self,
catalog: &[CatalogRecord],
service_type: &str
) -> Result<Url, Error>
Extract a URL from the service catalog.
pub fn set_interfaces<T>(&mut self, value: T) where
T: Into<ValidInterfaces>,
[src]
T: Into<ValidInterfaces>,
Set one or more valid interfaces.
Hint: because of the generic argument can be used with one InterfaceType
as well.
pub fn set_region<T>(&mut self, value: T) where
T: Into<String>,
[src]
T: Into<String>,
Set region.
pub fn with_interfaces<T>(self, value: T) -> EndpointFilters where
T: Into<ValidInterfaces>,
[src]
T: Into<ValidInterfaces>,
Add one or more valid interfaces.
Hint: because of the generic argument can be used with one InterfaceType
as well.
pub fn with_region<T>(self, value: T) -> EndpointFilters where
T: Into<String>,
[src]
T: Into<String>,
Add a region.
Trait Implementations
impl Clone for EndpointFilters
[src]
fn clone(&self) -> EndpointFilters
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for EndpointFilters
[src]
impl Default for EndpointFilters
[src]
fn default() -> EndpointFilters
[src]
impl Eq for EndpointFilters
[src]
impl Hash for EndpointFilters
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<EndpointFilters> for EndpointFilters
[src]
fn eq(&self, other: &EndpointFilters) -> bool
[src]
fn ne(&self, other: &EndpointFilters) -> bool
[src]
impl StructuralEq for EndpointFilters
[src]
impl StructuralPartialEq for EndpointFilters
[src]
Auto Trait Implementations
impl RefUnwindSafe for EndpointFilters
impl Send for EndpointFilters
impl Sync for EndpointFilters
impl Unpin for EndpointFilters
impl UnwindSafe for EndpointFilters
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,