pub struct FieldInfo { /* private fields */ }
Implementations§
Source§impl FieldInfo
impl FieldInfo
pub fn builder() -> FieldInfoBuilder
pub fn gen_field(&self) -> String
pub fn gen_builder_field(&self) -> String
pub fn name(&self) -> &str
pub fn raw_name(&self) -> &str
Sourcepub fn is_optional(&self) -> bool
pub fn is_optional(&self) -> bool
Returns true
if this field is optional.
Sourcepub fn is_computed(&self) -> bool
pub fn is_computed(&self) -> bool
Returns true
if this field can be calculated by Terraform.
Sourcepub fn field_type(&self) -> String
pub fn field_type(&self) -> String
Type of field used inside of resources and nested types. Will be wrapped inside of
std::rc::Rc
and crate::value::Cell
.
Sourcepub fn builder_setter_impl(&self) -> String
pub fn builder_setter_impl(&self) -> String
Generated the builder’s setter function.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldInfo
impl RefUnwindSafe for FieldInfo
impl Send for FieldInfo
impl Sync for FieldInfo
impl Unpin for FieldInfo
impl UnwindSafe for FieldInfo
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