pub struct ExplicitExpr(/* private fields */);
Expand description
An explicit GitHub Actions expression, fenced by ${{ <expr> }}
.
Implementations§
Source§impl ExplicitExpr
impl ExplicitExpr
Sourcepub fn from_curly(expr: impl Into<String>) -> Option<Self>
pub fn from_curly(expr: impl Into<String>) -> Option<Self>
Construct an ExplicitExpr
from the given string, consuming it
in the process.
Returns None
if the input is not a valid explicit expression.
Sourcepub fn as_raw(&self) -> &str
pub fn as_raw(&self) -> &str
Return the original string underlying this expression, including its exact whitespace and curly delimiters.
Trait Implementations§
Source§impl Debug for ExplicitExpr
impl Debug for ExplicitExpr
Source§impl<'de> Deserialize<'de> for ExplicitExpr
impl<'de> Deserialize<'de> for ExplicitExpr
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExplicitExpr
impl PartialEq for ExplicitExpr
Source§impl Serialize for ExplicitExpr
impl Serialize for ExplicitExpr
impl StructuralPartialEq for ExplicitExpr
Auto Trait Implementations§
impl Freeze for ExplicitExpr
impl RefUnwindSafe for ExplicitExpr
impl Send for ExplicitExpr
impl Sync for ExplicitExpr
impl Unpin for ExplicitExpr
impl UnwindSafe for ExplicitExpr
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