Struct hcl::expr::RawExpression
source · pub struct RawExpression(_);
Expand description
A type that holds the value of a raw expression. It can be used to serialize arbitrary HCL expressions.
Please note: raw expressions are not validated during serialization, so it is your responsiblity to ensure that they are valid HCL.
Implementations
sourceimpl RawExpression
impl RawExpression
sourcepub fn new<E>(expr: E) -> RawExpressionwhere
E: Into<String>,
pub fn new<E>(expr: E) -> RawExpressionwhere
E: Into<String>,
Creates a new RawExpression
from something that can be converted to a String
.
sourcepub fn into_inner(self) -> String
pub fn into_inner(self) -> String
Consumes self
and returns the RawExpression
as a String
. If you want to represent the
RawExpression
as an interpolated string, use .to_string()
instead.
Trait Implementations
sourceimpl Clone for RawExpression
impl Clone for RawExpression
sourcefn clone(&self) -> RawExpression
fn clone(&self) -> RawExpression
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RawExpression
impl Debug for RawExpression
sourceimpl<'de> Deserialize<'de> for RawExpression
impl<'de> Deserialize<'de> for RawExpression
sourcefn 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
sourceimpl Display for RawExpression
impl Display for RawExpression
sourceimpl Format for RawExpression
impl Format for RawExpression
sourceimpl From<&str> for RawExpression
impl From<&str> for RawExpression
sourceimpl<'a> From<Cow<'a, str>> for RawExpression
impl<'a> From<Cow<'a, str>> for RawExpression
sourceimpl From<RawExpression> for Expression
impl From<RawExpression> for Expression
sourcefn from(raw: RawExpression) -> Self
fn from(raw: RawExpression) -> Self
Converts to this type from the input type.
sourceimpl From<RawExpression> for String
impl From<RawExpression> for String
sourcefn from(expr: RawExpression) -> Self
fn from(expr: RawExpression) -> Self
Converts to this type from the input type.
sourceimpl From<String> for RawExpression
impl From<String> for RawExpression
sourceimpl Hash for RawExpression
impl Hash for RawExpression
sourceimpl<'de> IntoDeserializer<'de, Error> for RawExpression
impl<'de> IntoDeserializer<'de, Error> for RawExpression
type Deserializer = NewtypeStructDeserializer<String, Error>
type Deserializer = NewtypeStructDeserializer<String, Error>
The type of the deserializer being converted into.
sourcefn into_deserializer(self) -> Self::Deserializer
fn into_deserializer(self) -> Self::Deserializer
Convert this value into a deserializer.
sourceimpl PartialEq<RawExpression> for RawExpression
impl PartialEq<RawExpression> for RawExpression
sourcefn eq(&self, other: &RawExpression) -> bool
fn eq(&self, other: &RawExpression) -> bool
sourceimpl Serialize for RawExpression
impl Serialize for RawExpression
impl Eq for RawExpression
impl StructuralEq for RawExpression
impl StructuralPartialEq for RawExpression
Auto Trait Implementations
impl RefUnwindSafe for RawExpression
impl Send for RawExpression
impl Sync for RawExpression
impl Unpin for RawExpression
impl UnwindSafe for RawExpression
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.