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