pub struct RustChangelog<C> { /* private fields */ }Implementations§
Source§impl<C> RustChangelog<C>
impl<C> RustChangelog<C>
pub fn new(client: C) -> RustChangelog<C>
pub fn with_url(self, url: impl Into<Cow<'static, str>>) -> RustChangelog<C>
pub fn with_resource_name( self, resource_name: impl Into<Cow<'static, str>>, ) -> RustChangelog<C>
pub fn with_today(self, today: ReleaseDate) -> RustChangelog<C>
pub fn client(&self) -> &C
pub fn url(&self) -> &str
pub fn resource_name(&self) -> &str
pub fn today(&self) -> ReleaseDate
Source§impl<C> RustChangelog<C>where
C: RustReleasesClient,
impl<C> RustChangelog<C>where
C: RustReleasesClient,
pub fn fetch( &self, ) -> Result<StableReleases, RustChangelogError<<C as RustReleasesClient>::Error>>
Source§impl<C> RustChangelog<C>where
C: AsyncRustReleasesClient,
impl<C> RustChangelog<C>where
C: AsyncRustReleasesClient,
pub async fn fetch_async( &self, ) -> Result<StableReleases, RustChangelogError<<C as AsyncRustReleasesClient>::Error>>
Trait Implementations§
Source§impl<C> Clone for RustChangelog<C>where
C: Clone,
impl<C> Clone for RustChangelog<C>where
C: Clone,
Source§fn clone(&self) -> RustChangelog<C>
fn clone(&self) -> RustChangelog<C>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<C> Freeze for RustChangelog<C>where
C: Freeze,
impl<C> RefUnwindSafe for RustChangelog<C>where
C: RefUnwindSafe,
impl<C> Send for RustChangelog<C>where
C: Send,
impl<C> Sync for RustChangelog<C>where
C: Sync,
impl<C> Unpin for RustChangelog<C>where
C: Unpin,
impl<C> UnsafeUnpin for RustChangelog<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for RustChangelog<C>where
C: UnwindSafe,
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