[][src]Trait osauth::services::ServiceType

pub trait ServiceType {
    pub fn catalog_type(&self) -> &'static str;

    pub fn major_version_supported(&self, _version: ApiVersion) -> bool { ... }
pub fn set_api_version_headers(
        &self,
        _headers: &mut HeaderMap,
        _version: ApiVersion
    ) -> Result<(), Error> { ... }
pub fn version_discovery_supported(&self) -> bool { ... } }

Trait representing a service type.

Required methods

pub fn catalog_type(&self) -> &'static str[src]

Service type to pass to the catalog.

Loading content...

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]

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.

Loading content...

Implementors

impl ServiceType for BareMetalService[src]

impl ServiceType for BlockStorageService[src]

impl ServiceType for ComputeService[src]

impl ServiceType for GenericService[src]

impl ServiceType for ImageService[src]

impl ServiceType for NetworkService[src]

impl ServiceType for ObjectStorageService[src]

Loading content...