Struct hubcaps_ex::releases::Releases [−][src]
pub struct Releases { /* fields omitted */ }
Provides access to published releases. See the github docs for more information.
Implementations
impl Releases
[src]
pub fn create(&self, rel: &ReleaseOptions) -> Future<Release>
[src]
Create new a release.
See the github docs for more information.
pub fn edit(&self, id: u64, rel: &ReleaseOptions) -> Future<Release>
[src]
Edit a release by id.
See the github docs for more information.
pub fn delete(&self, id: u64) -> Future<()>
[src]
Delete a release by id.
See the github docs for more information.
pub fn list(&self) -> Future<Vec<Release>>
[src]
List published releases and draft releases for users with push access.
See the github docs for more information.
pub fn latest(&self) -> Future<Release>
[src]
Return the latest full release. Draft releases and prereleases are not returned.
See the github docs for more information.
pub fn by_tag<S>(&self, tag_name: S) -> Future<Release> where
S: Into<String>,
[src]
S: Into<String>,
Return a release by tag name.
See the github docs for more information.
pub fn get(&self, id: u64) -> ReleaseRef
[src]
Get a reference to a specific release associated with a repository
Auto Trait Implementations
impl !RefUnwindSafe for Releases
impl Send for Releases
impl Sync for Releases
impl Unpin for Releases
impl !UnwindSafe for Releases
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,