Struct self_github_update::backends::github::ReleaseListBuilder
source · pub struct ReleaseListBuilder { /* private fields */ }
Expand description
ReleaseList
Builder
Implementations§
source§impl ReleaseListBuilder
impl ReleaseListBuilder
sourcepub fn repo_owner(&mut self, owner: &str) -> &mut Self
pub fn repo_owner(&mut self, owner: &str) -> &mut Self
Set the repo owner, used to build a github api url
sourcepub fn repo_name(&mut self, name: &str) -> &mut Self
pub fn repo_name(&mut self, name: &str) -> &mut Self
Set the repo name, used to build a github api url
sourcepub fn with_target(&mut self, target: &str) -> &mut Self
pub fn with_target(&mut self, target: &str) -> &mut Self
Set the optional arch target
name, used to filter available releases
sourcepub fn with_url(&mut self, url: &str) -> &mut Self
pub fn with_url(&mut self, url: &str) -> &mut Self
Set the optional github url, e.g. for a github enterprise installation.
The url should provide the path to your API endpoint and end without a trailing slash,
for example https://api.github.com
or https://github.mycorp.com/api/v3
sourcepub fn auth_token(&mut self, auth_token: &str) -> &mut Self
pub fn auth_token(&mut self, auth_token: &str) -> &mut Self
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
sourcepub fn build(&self) -> Result<ReleaseList>
pub fn build(&self) -> Result<ReleaseList>
Verify builder args, returning a ReleaseList
Trait Implementations§
source§impl Clone for ReleaseListBuilder
impl Clone for ReleaseListBuilder
source§fn clone(&self) -> ReleaseListBuilder
fn clone(&self) -> ReleaseListBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more