pub struct CodesOfConduct<'api, C: Client>{ /* private fields */ }Implementations§
Source§impl<'api, C: Client> CodesOfConduct<'api, C>
impl<'api, C: Client> CodesOfConduct<'api, C>
Sourcepub async fn get_all_codes_of_conduct_async(
&self,
) -> Result<Vec<CodeOfConduct>, AdapterError>
pub async fn get_all_codes_of_conduct_async( &self, ) -> Result<Vec<CodeOfConduct>, AdapterError>
§Get all codes of conduct
Returns array of all GitHub’s codes of conduct.
GitHub API docs for get_all_codes_of_conduct
Sourcepub fn get_all_codes_of_conduct(
&self,
) -> Result<Vec<CodeOfConduct>, AdapterError>
pub fn get_all_codes_of_conduct( &self, ) -> Result<Vec<CodeOfConduct>, AdapterError>
§Get all codes of conduct
Returns array of all GitHub’s codes of conduct.
GitHub API docs for get_all_codes_of_conduct
Sourcepub async fn get_conduct_code_async(
&self,
key: &str,
) -> Result<CodeOfConduct, AdapterError>
pub async fn get_conduct_code_async( &self, key: &str, ) -> Result<CodeOfConduct, AdapterError>
§Get a code of conduct
Returns information about the specified GitHub code of conduct.
GitHub API docs for get_conduct_code
Sourcepub fn get_conduct_code(&self, key: &str) -> Result<CodeOfConduct, AdapterError>
pub fn get_conduct_code(&self, key: &str) -> Result<CodeOfConduct, AdapterError>
§Get a code of conduct
Returns information about the specified GitHub code of conduct.
GitHub API docs for get_conduct_code
Auto Trait Implementations§
impl<'api, C> Freeze for CodesOfConduct<'api, C>where
AdapterError: Sized,
impl<'api, C> RefUnwindSafe for CodesOfConduct<'api, C>
impl<'api, C> Send for CodesOfConduct<'api, C>
impl<'api, C> Sync for CodesOfConduct<'api, C>
impl<'api, C> Unpin for CodesOfConduct<'api, C>where
AdapterError: Sized,
impl<'api, C> UnwindSafe for CodesOfConduct<'api, C>
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