Struct roctogen::endpoints::codes_of_conduct::CodesOfConduct [−][src]
pub struct CodesOfConduct<'api> { /* fields omitted */ }
Implementations
impl<'api> CodesOfConduct<'api>
[src]
impl<'api> CodesOfConduct<'api>
[src]pub async fn get_all_codes_of_conduct_async(
&self
) -> Result<Vec<CodeOfConduct>, CodesOfConductGetAllCodesOfConductError>
[src]
pub async fn get_all_codes_of_conduct_async(
&self
) -> Result<Vec<CodeOfConduct>, CodesOfConductGetAllCodesOfConductError>
[src]Get all codes of conduct
GitHub API docs for get_all_codes_of_conduct
The get_all_codes_of_conduct_async
endpoint is enabled with the scarlet-witch
cargo feature.
pub fn get_all_codes_of_conduct(
&self
) -> Result<Vec<CodeOfConduct>, CodesOfConductGetAllCodesOfConductError>
[src]
pub fn get_all_codes_of_conduct(
&self
) -> Result<Vec<CodeOfConduct>, CodesOfConductGetAllCodesOfConductError>
[src]Get all codes of conduct
GitHub API docs for get_all_codes_of_conduct
The get_all_codes_of_conduct
endpoint is enabled with the scarlet-witch
cargo feature.
pub async fn get_conduct_code_async(
&self,
key: &str
) -> Result<CodeOfConduct, CodesOfConductGetConductCodeError>
[src]
pub async fn get_conduct_code_async(
&self,
key: &str
) -> Result<CodeOfConduct, CodesOfConductGetConductCodeError>
[src]Get a code of conduct
GitHub API docs for get_conduct_code
The get_conduct_code_async
endpoint is enabled with the scarlet-witch
cargo feature.
pub fn get_conduct_code(
&self,
key: &str
) -> Result<CodeOfConduct, CodesOfConductGetConductCodeError>
[src]
pub fn get_conduct_code(
&self,
key: &str
) -> Result<CodeOfConduct, CodesOfConductGetConductCodeError>
[src]Get a code of conduct
GitHub API docs for get_conduct_code
The get_conduct_code
endpoint is enabled with the scarlet-witch
cargo feature.
pub async fn get_for_repo_async(
&self,
owner: &str,
repo: &str
) -> Result<CodeOfConduct, CodesOfConductGetForRepoError>
[src]
pub async fn get_for_repo_async(
&self,
owner: &str,
repo: &str
) -> Result<CodeOfConduct, CodesOfConductGetForRepoError>
[src]Get the code of conduct for a repository
Returns the contents of the repository’s code of conduct file, if one is detected.
A code of conduct is detected if there is a file named CODE_OF_CONDUCT
in the root directory of the repository. GitHub detects which code of conduct it is using fuzzy matching.
GitHub API docs for get_for_repo
The get_for_repo_async
endpoint is enabled with the scarlet-witch
cargo feature.
pub fn get_for_repo(
&self,
owner: &str,
repo: &str
) -> Result<CodeOfConduct, CodesOfConductGetForRepoError>
[src]
pub fn get_for_repo(
&self,
owner: &str,
repo: &str
) -> Result<CodeOfConduct, CodesOfConductGetForRepoError>
[src]Get the code of conduct for a repository
Returns the contents of the repository’s code of conduct file, if one is detected.
A code of conduct is detected if there is a file named CODE_OF_CONDUCT
in the root directory of the repository. GitHub detects which code of conduct it is using fuzzy matching.
GitHub API docs for get_for_repo
The get_for_repo
endpoint is enabled with the scarlet-witch
cargo feature.