[][src]Struct self_update::backends::github::ReleaseListBuilder

pub struct ReleaseListBuilder { /* fields omitted */ }

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]

impl Debug for ReleaseListBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.