[−][src]Trait openstack::session::ServiceType
Trait representing a service type.
Required methods
fn catalog_type(&self) -> &'static str
Service type to pass to the catalog.
Provided methods
fn major_version_supported(&self, _version: ApiVersion) -> bool
Check whether this service type is compatible with the given major version.
fn set_api_version_headers(
&self,
_headers: &mut HeaderMap<HeaderValue>,
_version: ApiVersion
) -> Result<(), Error>
&self,
_headers: &mut HeaderMap<HeaderValue>,
_version: ApiVersion
) -> Result<(), Error>
Update the headers to include the API version headers.
The default implementation fails with IncompatibleApiVersion
.
fn version_discovery_supported(&self) -> bool
Whether this service supports version discovery at all.
Implementations on Foreign Types
impl ServiceType for BlockStorageService
[src]
fn catalog_type(&self) -> &'static str
[src]
fn version_discovery_supported(&self) -> bool
[src]
impl ServiceType for ComputeService
[src]
fn catalog_type(&self) -> &'static str
[src]
fn major_version_supported(&self, version: ApiVersion) -> bool
[src]
fn set_api_version_headers(
&self,
headers: &mut HeaderMap<HeaderValue>,
version: ApiVersion
) -> Result<(), Error>
[src]
&self,
headers: &mut HeaderMap<HeaderValue>,
version: ApiVersion
) -> Result<(), Error>
impl ServiceType for NetworkService
[src]
fn catalog_type(&self) -> &'static str
[src]
fn version_discovery_supported(&self) -> bool
[src]
impl ServiceType for ObjectStorageService
[src]
fn catalog_type(&self) -> &'static str
[src]
fn version_discovery_supported(&self) -> bool
[src]
impl ServiceType for GenericService
[src]
fn catalog_type(&self) -> &'static str
[src]
fn major_version_supported(&self, version: ApiVersion) -> bool
[src]
impl ServiceType for ImageService
[src]
fn catalog_type(&self) -> &'static str
[src]
fn version_discovery_supported(&self) -> bool
[src]
impl ServiceType for BareMetalService
[src]
fn catalog_type(&self) -> &'static str
[src]
fn set_api_version_headers(
&self,
headers: &mut HeaderMap<HeaderValue>,
version: ApiVersion
) -> Result<(), Error>
[src]
&self,
headers: &mut HeaderMap<HeaderValue>,
version: ApiVersion
) -> Result<(), Error>