pub async fn check_membership(&self, username: impl AsRef<str>) -> crate::Result<bool> {
        let url = format!(
            "orgs/{org}/members/{username}",
            org = self.owner,
            username = username.as_ref(),
        );

        let response = self
            .crab
            ._get(self.crab.absolute_url(url)?, None::<&()>)
            .await?;
        let status = response.status();

        Ok(status == 204 || status == 301)
    }
/// Check if a user is, publicly or privately, a member of the organization.
///
/// ```no_run
/// # async fn run() -> octocrab::Result<()> {
/// # let octocrab = octocrab::Octocrab::default();
/// assert!(octocrab.orgs("owner").check_membership("ferris").await?);
/// # Ok(())
/// # }
/// ```
Check if a user is, publicly or privately, a member of the organization.
Check if a user is publicly or privately a member of the organization .
pub async fn check_membership(&self, username: impl AsRef<str>) -> crate::Result<bool> {
        let url = format!(
            "orgs/{org}/members/{username}",
            org = self.owner,
            username = username.as_ref(),
        );
        let response = self
            .crab
            ._get(self.crab.absolute_url(url)?, None::<&()>)
            .await?;
        let status = response.status();
        Ok(status == 204 || status == 301)
    }
pub async fn check_membership ( & self , username : impl AsRef < str > ) -> crate :: Result < bool > { let url = format ! ( " " org self owner username username as_ref ( ) ) ; let response = self . crab . _get ( self . crab . absolute_url ( url ) ? , None :: < & ( ) > ) . await ? ; let status = response . status ( ) ; Ok ( status == 204 || status == 301 ) }
Check if a user is, publicly or privately, a member of the organization.
Check if a user is publicly or privately a member of the organization .
&self
username
impl AsRef<str>
&self
username
impl AsRef<str>
async fn run() -> octocrab::result<()> {
None
let octocrab = octocrab::octocrab::default();
None
ok(())
None
}
None