Skip to main content

ResolveLatestPublicResource

Trait ResolveLatestPublicResource 

Source
pub trait ResolveLatestPublicResource: ClientContext {
    type ResourceId;
    type Resource;

    // Required method
    fn resolve_latest_public_resource(
        &self,
        id: &Self::ResourceId,
    ) -> impl Future<Output = Result<Self::Resource, Self::Error>>;
}
Expand description

Latest-version resolution for public resources that expose version families.

Required Associated Types§

Source

type ResourceId

Service-specific resource identifier type.

Source

type Resource

Returned public resource payload.

Required Methods§

Source

fn resolve_latest_public_resource( &self, id: &Self::ResourceId, ) -> impl Future<Output = Result<Self::Resource, Self::Error>>

Resolves the latest public version in the resource family.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§