pub async fn unlock(&self, number: u64) -> Result<bool> {
        let route = format!(
            "repos/{owner}/{repo}/issues/{number}/lock",
            owner = self.owner,
            repo = self.repo,
            number = number,
        );

        let response = self
            .crab
            ._delete(self.crab.absolute_url(route)?, None::<&()>)
            .await?;

        Ok(response.status() == 204)
    }
/// Users with push access can unlock an issue or pull request's conversation.
///
/// See also: https://developer.github.com/v3/issues/#unlock-an-issue
/// ```no_run
/// # async fn run() -> octocrab::Result<()> {
/// use octocrab::params;
///
/// assert!(octocrab::instance().issues("owner", "repo").unlock(404).await?);
/// # Ok(())
/// # }
/// ```
Users with push access can unlock an issue or pull request's conversation.
Users with push access can unlock an issue or pull request ' s conversation .
pub async fn unlock(&self, number: u64) -> Result<bool> {
        let route = format!(
            "repos/{owner}/{repo}/issues/{number}/lock",
            owner = self.owner,
            repo = self.repo,
            number = number,
        );
        let response = self
            .crab
            ._delete(self.crab.absolute_url(route)?, None::<&()>)
            .await?;
        Ok(response.status() == 204)
    }
pub async fn unlock ( & self , number : u64 ) -> Result < bool > { let route = format ! ( " " owner self owner repo self repo number number ) ; let response = self . crab . _delete ( self . crab . absolute_url ( route ) ? , None :: < & ( ) > ) . await ? ; Ok ( response . status ( ) == 204 ) }
Users with push access can unlock an issue or pull request's conversation.
Users with push access can unlock an issue or pull request ' s conversation .
&self
number
u64
&self
number
u64
async fn run() -> octocrab::result<()> {
use octocrab::params.

assert!(octocrab::instance().issues("owner", "repo").unlock(404).await?).
use octocrab :: params . assert! ( octocrab :: instance () . issues ( " owner " " repo " ) . unlock ( 404 ) . await? ) .
ok(())
None
}
None