Struct Context

Source
pub struct Context<A> { /* private fields */ }

Implementations§

Source§

impl<A> Context<A>

Source

pub fn eq(&self, other: Context<A>) -> Context<bool>

Source

pub fn and(&self, other: Context<A>) -> Context<bool>

Source

pub fn or(&self, other: Context<A>) -> Context<bool>

Source§

impl Context<String>

Source

pub fn concat(&self, other: Context<String>) -> Context<String>

Source§

impl Context<Github>

Source

pub fn action(&self) -> Context<String>

Source

pub fn action_path(&self) -> Context<String>

Source

pub fn action_ref(&self) -> Context<String>

Source

pub fn action_repository(&self) -> Context<String>

Source

pub fn action_status(&self) -> Context<String>

Source

pub fn actor(&self) -> Context<String>

Source

pub fn actor_id(&self) -> Context<String>

Source

pub fn api_url(&self) -> Context<String>

Source

pub fn base_ref(&self) -> Context<String>

Source

pub fn env(&self) -> Context<String>

Source

pub fn event(&self) -> Context<Value>

Source

pub fn event_name(&self) -> Context<String>

Source

pub fn event_path(&self) -> Context<String>

Source

pub fn graphql_url(&self) -> Context<String>

Source

pub fn head_ref(&self) -> Context<String>

Source

pub fn job(&self) -> Context<String>

Source

pub fn path(&self) -> Context<String>

Source

pub fn ref_name(&self) -> Context<String>

Source

pub fn ref_protected(&self) -> Context<bool>

Source

pub fn ref_type(&self) -> Context<String>

Source

pub fn repository(&self) -> Context<String>

Source

pub fn repository_id(&self) -> Context<String>

Source

pub fn repository_owner(&self) -> Context<String>

Source

pub fn repository_owner_id(&self) -> Context<String>

Source

pub fn repository_url(&self) -> Context<String>

Source

pub fn retention_days(&self) -> Context<String>

Source

pub fn run_id(&self) -> Context<String>

Source

pub fn run_number(&self) -> Context<String>

Source

pub fn run_attempt(&self) -> Context<String>

Source

pub fn secret_source(&self) -> Context<String>

Source

pub fn server_url(&self) -> Context<String>

Source

pub fn sha(&self) -> Context<String>

Source

pub fn token(&self) -> Context<String>

Source

pub fn triggering_actor(&self) -> Context<String>

Source

pub fn workflow(&self) -> Context<String>

Source

pub fn workflow_ref(&self) -> Context<String>

Source

pub fn workflow_sha(&self) -> Context<String>

Source

pub fn workspace(&self) -> Context<String>

Source

pub fn github() -> Self

Source§

impl Context<Github>

Source

pub fn ref_(&self) -> Context<String>

Source§

impl Context<Job>

Source

pub fn container(&self) -> Context<Container>

Source

pub fn services(&self) -> Context<Services>

Source

pub fn status(&self) -> Context<JobStatus>

Source

pub fn job() -> Self

Source§

impl Context<Container>

Source

pub fn id(&self) -> Context<String>

Source

pub fn network(&self) -> Context<String>

Source

pub fn container() -> Self

Source§

impl Context<Services>

Source

pub fn services() -> Self

Trait Implementations§

Source§

impl<A: Clone> Clone for Context<A>

Source§

fn clone(&self) -> Context<A>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<A> Display for Context<A>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<A> From<Context<A>> for Expression

Source§

fn from(value: Context<A>) -> Self

Converts to this type from the input type.
Source§

impl<T: Into<String>> From<T> for Context<String>

Source§

fn from(value: T) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<A> Freeze for Context<A>

§

impl<A> RefUnwindSafe for Context<A>
where A: RefUnwindSafe,

§

impl<A> !Send for Context<A>

§

impl<A> !Sync for Context<A>

§

impl<A> Unpin for Context<A>
where A: Unpin,

§

impl<A> UnwindSafe for Context<A>
where A: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.