pub struct SimpleVersionsStore {
pub base_url: Url,
pub endpoints: HashMap<VersionNumber, Vec<Endpoint>>,
}Fields§
§base_url: Url§endpoints: HashMap<VersionNumber, Vec<Endpoint>>Implementations§
Trait Implementations§
Source§impl VersionsStore for SimpleVersionsStore
impl VersionsStore for SimpleVersionsStore
fn base_url(&self) -> Url
fn versions_get_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Version>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn versions_get_details<'life0, 'async_trait>(
&'life0 self,
version_number: VersionNumber,
) -> Pin<Box<dyn Future<Output = Result<Option<VersionDetails>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn url_path(&self, path: &[impl AsRef<str>]) -> Url
Auto Trait Implementations§
impl Freeze for SimpleVersionsStore
impl RefUnwindSafe for SimpleVersionsStore
impl Send for SimpleVersionsStore
impl Sync for SimpleVersionsStore
impl Unpin for SimpleVersionsStore
impl UnwindSafe for SimpleVersionsStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more