Expand description
Provides access to published releases. See the github docs for more information.
Implementations
sourceimpl<C: Clone + Connect + 'static> Releases<C>
impl<C: Clone + Connect + 'static> Releases<C>
sourcepub fn create(&self, rel: &ReleaseOptions) -> Future<Release>
pub fn create(&self, rel: &ReleaseOptions) -> Future<Release>
Create new a release.
See the github docs for more information.
sourcepub fn edit(&self, id: u64, rel: &ReleaseOptions) -> Future<Release>
pub fn edit(&self, id: u64, rel: &ReleaseOptions) -> Future<Release>
Edit a release by id.
See the github docs for more information.
sourcepub fn delete(&self, id: u64) -> Future<()>
pub fn delete(&self, id: u64) -> Future<()>
Delete a release by id.
See the github docs for more information.
sourcepub fn list(&self) -> Future<Vec<Release>>
pub fn list(&self) -> Future<Vec<Release>>
List published releases and draft releases for users with push access.
See the github docs for more information.
sourcepub fn latest(&self) -> Future<Release>
pub fn latest(&self) -> Future<Release>
Return the latest full release. Draft releases and prereleases are not returned.
See the github docs for more information.
sourcepub fn by_tag<S>(&self, tag_name: S) -> Future<Release>where
S: Into<String>,
pub fn by_tag<S>(&self, tag_name: S) -> Future<Release>where
S: Into<String>,
Return a release by tag name.
See the github docs for more information.
sourcepub fn get(&self, id: u64) -> ReleaseRef<C>
pub fn get(&self, id: u64) -> ReleaseRef<C>
Get a reference to a specific release associated with a repository
Auto Trait Implementations
impl<C> !RefUnwindSafe for Releases<C>
impl<C> Send for Releases<C>
impl<C> Sync for Releases<C>
impl<C> Unpin for Releases<C>
impl<C> !UnwindSafe for Releases<C>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more