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

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

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

Trait representing a service type.

Required methods

fn catalog_type(&self) -> &'static str

Service type to pass to the catalog.

Loading content...

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,
    _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.

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...