Struct schema_ast::ast::ConfigBlockProperty
source · pub struct ConfigBlockProperty {
pub name: Identifier,
pub value: Option<Expression>,
pub span: Span,
}
Expand description
A named property in a config block.
ⓘ
datasource db {
url = env("URL")
^^^^^^^^^^^^^^^^
}
Fields§
§name: Identifier
The property name.
ⓘ
datasource db {
url = env("URL")
^^^
}
value: Option<Expression>
The property value.
ⓘ
datasource db {
url = env("URL")
^^^^^^^^^^
}
span: Span
The node span.
Trait Implementations§
source§impl Clone for ConfigBlockProperty
impl Clone for ConfigBlockProperty
source§fn clone(&self) -> ConfigBlockProperty
fn clone(&self) -> ConfigBlockProperty
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConfigBlockProperty
impl Debug for ConfigBlockProperty
Auto Trait Implementations§
impl RefUnwindSafe for ConfigBlockProperty
impl Send for ConfigBlockProperty
impl Sync for ConfigBlockProperty
impl Unpin for ConfigBlockProperty
impl UnwindSafe for ConfigBlockProperty
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