[−][src]Struct self_update::backends::github::ReleaseListBuilder
ReleaseList
Builder
Methods
impl ReleaseListBuilder
[src]
pub fn repo_owner(&mut self, owner: &str) -> &mut Self
[src]
Set the repo owner, used to build a github api url
pub fn repo_name(&mut self, name: &str) -> &mut Self
[src]
Set the repo name, used to build a github api url
pub fn with_target(&mut self, target: &str) -> &mut Self
[src]
Set the optional arch target
name, used to filter available releases
pub fn auth_token(&mut self, auth_token: &str) -> &mut Self
[src]
Set the authorization token, used in requests to the github api url
This is to support private repos where you need a GitHub auth token. Make sure not to bake the token into your app; it is recommended you obtain it via another mechanism, such as environment variables or prompting the user for input
pub fn build(&self) -> Result<ReleaseList>
[src]
Verify builder args, returning a ReleaseList
Trait Implementations
impl Clone for ReleaseListBuilder
[src]
fn clone(&self) -> ReleaseListBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ReleaseListBuilder
[src]
Auto Trait Implementations
impl Send for ReleaseListBuilder
impl Sync for ReleaseListBuilder
impl Unpin for ReleaseListBuilder
impl UnwindSafe for ReleaseListBuilder
impl RefUnwindSafe for ReleaseListBuilder
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,