pub enum Function {
Show 13 variants
Contains,
StartsWith,
EndsWith,
Format,
Join,
ToJSON,
FromJSON,
HashFiles,
Case,
Success,
Always,
Cancelled,
Failure,
}Expand description
Represents a function in a GitHub Actions expression.
Function names are case-insensitive.
Variants§
Contains
contains(haystack, needle)
StartsWith
startsWith(string, prefix)
EndsWith
endsWith(string, suffix)
Format
format(fmtspec, args...)
Join
join(separator, items...)
ToJSON
toJSON(value)
FromJSON
fromJSON(json)
HashFiles
hashFiles(glob, ...)
Case
case(pred1, val1, pred2, val2, ..., default)
Success
success()
Always
always()
Cancelled
cancelled()
Failure
failure()
Trait Implementations§
impl Copy for Function
impl Eq for Function
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnsafeUnpin for Function
impl UnwindSafe for Function
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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