pub struct Expression(/* private fields */);Expand description
Represents a GitHub Actions expression.
This type performs no syntax checking on the underlying expression,
meaning that it might be invalid. The underlying expression may also
be “curly” or “bare” depending on its origin; use an appropriate
method like Expression::as_curly to access a specific form.
Implementations§
source§impl Expression
impl Expression
sourcepub fn from_curly(value: String) -> Option<Self>
pub fn from_curly(value: String) -> Option<Self>
Construct an Expression from the given value if and only if
the value is already a “curly” expression.
sourcepub fn from_bare(value: String) -> Option<Self>
pub fn from_bare(value: String) -> Option<Self>
Construct an Expression from the given value if and only if
the value is already a “bare” expression.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Expression
impl<'de> Deserialize<'de> for Expression
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
Auto Trait Implementations§
impl Freeze for Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
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