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