pub struct Context {Show 15 fields
pub payload: JsonValue,
pub event_name: String,
pub sha: String,
pub ref_: String,
pub workflow: String,
pub action: String,
pub actor: String,
pub job: String,
pub run_attempt: u8,
pub run_number: u8,
pub run_id: u128,
pub api_url: String,
pub server_url: String,
pub graphql_url: String,
pub repo: Repo,
}
Expand description
Context class injected by the action worker.
Find detailed documentation in GitHub’s documentation for Contexts
Fields§
§payload: JsonValue
§event_name: String
§sha: String
§ref_: String
§workflow: String
§action: String
§actor: String
§job: String
§run_attempt: u8
§run_number: u8
§run_id: u128
§api_url: String
§server_url: String
§graphql_url: String
§repo: Repo
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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