Struct wick_config::v1::SqlComponent
source · pub struct SqlComponent {
pub resource: String,
pub tls: bool,
pub with: Vec<Field>,
pub operations: Vec<SqlQueryKind>,
}Expand description
A dynamic component whose operations are SQL queries to a database.
Fields§
§resource: StringThe connect string URL resource for the database.
tls: boolWhether or not to use TLS.
with: Vec<Field>Configuration necessary to provide when instantiating the component.
operations: Vec<SqlQueryKind>A list of operations to expose on this component.
Trait Implementations§
source§impl Clone for SqlComponent
impl Clone for SqlComponent
source§fn clone(&self) -> SqlComponent
fn clone(&self) -> SqlComponent
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 SqlComponent
impl Debug for SqlComponent
source§impl<'de> Deserialize<'de> for SqlComponent
impl<'de> Deserialize<'de> for SqlComponent
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<SqlComponent> for SqlComponent
impl PartialEq<SqlComponent> for SqlComponent
source§fn eq(&self, other: &SqlComponent) -> bool
fn eq(&self, other: &SqlComponent) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for SqlComponent
impl Serialize for SqlComponent
source§impl TryFrom<SqlComponent> for SqlComponentConfig
impl TryFrom<SqlComponent> for SqlComponentConfig
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§impl TryFrom<SqlComponentConfig> for SqlComponent
impl TryFrom<SqlComponentConfig> for SqlComponent
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
impl StructuralPartialEq for SqlComponent
Auto Trait Implementations§
impl RefUnwindSafe for SqlComponent
impl Send for SqlComponent
impl Sync for SqlComponent
impl Unpin for SqlComponent
impl UnwindSafe for SqlComponent
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