Struct self_update::backends::github::ReleaseListBuilder [−][src]
pub struct ReleaseListBuilder { /* fields omitted */ }
ReleaseList
Builder
Implementations
impl ReleaseListBuilder
[src]
impl ReleaseListBuilder
[src]pub fn repo_owner(&mut self, owner: &str) -> &mut Self
[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]
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]
pub fn with_target(&mut self, target: &str) -> &mut Self
[src]Set the optional arch target
name, used to filter available releases
pub fn with_url(&mut self, url: &str) -> &mut Self
[src]
pub fn with_url(&mut self, url: &str) -> &mut Self
[src]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
pub fn auth_token(&mut self, auth_token: &str) -> &mut Self
[src]
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]
pub fn build(&self) -> Result<ReleaseList>
[src]Verify builder args, returning a ReleaseList
Trait Implementations
impl Clone for ReleaseListBuilder
[src]
impl Clone for ReleaseListBuilder
[src]fn clone(&self) -> ReleaseListBuilder
[src]
fn clone(&self) -> ReleaseListBuilder
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for ReleaseListBuilder
impl Send for ReleaseListBuilder
impl Sync for ReleaseListBuilder
impl Unpin for ReleaseListBuilder
impl UnwindSafe for ReleaseListBuilder
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,