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 target(&mut self, target: &str) -> &mut Self
pub fn target(&mut self, target: &str) -> &mut Self
Set the optional arch target
name, used to filter available releases
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
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ReleaseListBuilder
impl RefUnwindSafe for ReleaseListBuilder
impl Send for ReleaseListBuilder
impl Sync for ReleaseListBuilder
impl Unpin for ReleaseListBuilder
impl UnwindSafe for ReleaseListBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more