pub struct Context<'src> {
pub components: Vec<Expr<'src>>,
/* private fields */
}Expand description
Represents a context in a GitHub Actions expression.
These typically look something like github.actor or inputs.foo,
although they can also be a “call” context like fromJSON(...).foo.bar,
i.e. where the head of the context is a function call rather than an
identifier.
Fields§
§components: Vec<Expr<'src>>The inner components of the context.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'src> Freeze for Context<'src>
impl<'src> RefUnwindSafe for Context<'src>
impl<'src> Send for Context<'src>
impl<'src> Sync for Context<'src>
impl<'src> Unpin for Context<'src>
impl<'src> UnwindSafe for Context<'src>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more