pub fn fetch(self) -> crate::Result<Vec<Release>> {
    set_ssl_vars!();
    let api_url = format!(
      "https://api.github.com/repos/{}/{}/releases",
      self.repo_owner, self.repo_name
    );
    let releases = Self::fetch_releases(&api_url)?;
    let releases = match self.target {
      None => releases,
      Some(ref target) => releases
        .into_iter()
        .filter(|r| r.has_target_asset(target))
        .collect::<Vec<_>>(),
    };
    Ok(releases)
  }
/// Retrieve a list of `Release`s.
/// If specified, filter for those containing a specified `target`
Retrieve a list of `Release`s.
If specified, filter for those containing a specified `target`
Retrieve a list of ` Release ` s . If specified filter for those containing a specified ` target `
pub fn fetch(self) -> crate::Result<Vec<Release>> {
    set_ssl_vars!();
    let api_url = format!(
      "https://api.github.com/repos/{}/{}/releases",
      self.repo_owner, self.repo_name
    );
    let releases = Self::fetch_releases(&api_url)?;
    let releases = match self.target {
      None => releases,
      Some(ref target) => releases
        .into_iter()
        .filter(|r| r.has_target_asset(target))
        .collect::<Vec<_>>(),
    };
    Ok(releases)
  }
pub fn fetch ( self ) -> crate :: Result < Vec < Release > > { set_ssl_vars ! ( ) ; let api_url = format ! ( " " self repo_owner self repo_name ) ; let releases = Self :: fetch_releases ( & api_url ) ? ; let releases = match self . target { None => releases , Some ( ref target ) => releases . into_iter ( ) . filter ( | r | r . has_target_asset ( target ) ) . collect :: < Vec < _ > > ( ) , } ; Ok ( releases ) }
Retrieve a list of `Release`s.
Retrieve a list of ` Release ` s .
self
self