pub struct GithubContext {
pub repo: String,
pub pr: u64,
pub token: Secret,
pub api_base: Option<String>,
}Expand description
PR context required to find / create / update the sticky comment.
Fields§
§repo: StringRepo in owner/name form.
pr: u64Pull request number.
token: SecretGitHub token (PAT or Actions GITHUB_TOKEN). Stored as a Secret
so an accidental Debug print of the surrounding struct does not
leak the token.
api_base: Option<String>Override the GH API base. Defaults to https://api.github.com.
Implementations§
Trait Implementations§
Source§impl Clone for GithubContext
impl Clone for GithubContext
Source§fn clone(&self) -> GithubContext
fn clone(&self) -> GithubContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GithubContext
impl RefUnwindSafe for GithubContext
impl Send for GithubContext
impl Sync for GithubContext
impl Unpin for GithubContext
impl UnsafeUnpin for GithubContext
impl UnwindSafe for GithubContext
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