pub struct LocalPostgresBinding {
pub database: BindingValueString,
pub host: BindingValueString,
pub password: String,
pub port: BindingValueU16,
pub username: BindingValueString,
}Expand description
Local embedded Postgres binding.
JSON schema
{
"description": "Local embedded Postgres binding.",
"type": "object",
"required": [
"database",
"host",
"password",
"port",
"username"
],
"properties": {
"database": {
"$ref": "#/components/schemas/BindingValue_String"
},
"host": {
"$ref": "#/components/schemas/BindingValue_String"
},
"password": {
"type": "string"
},
"port": {
"$ref": "#/components/schemas/BindingValue_u16"
},
"username": {
"$ref": "#/components/schemas/BindingValue_String"
}
}
}Fields§
§database: BindingValueString§host: BindingValueString§password: String§port: BindingValueU16§username: BindingValueStringImplementations§
Source§impl LocalPostgresBinding
impl LocalPostgresBinding
pub fn builder() -> LocalPostgresBinding
Trait Implementations§
Source§impl Clone for LocalPostgresBinding
impl Clone for LocalPostgresBinding
Source§impl Debug for LocalPostgresBinding
impl Debug for LocalPostgresBinding
Source§impl<'de> Deserialize<'de> for LocalPostgresBinding
impl<'de> Deserialize<'de> for LocalPostgresBinding
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 From<&LocalPostgresBinding> for LocalPostgresBinding
impl From<&LocalPostgresBinding> for LocalPostgresBinding
Source§fn from(value: &LocalPostgresBinding) -> Self
fn from(value: &LocalPostgresBinding) -> Self
Converts to this type from the input type.
Source§impl From<LocalPostgresBinding> for LocalPostgresBinding
impl From<LocalPostgresBinding> for LocalPostgresBinding
Source§fn from(value: LocalPostgresBinding) -> Self
fn from(value: LocalPostgresBinding) -> Self
Converts to this type from the input type.
Source§impl Serialize for LocalPostgresBinding
impl Serialize for LocalPostgresBinding
Source§impl TryFrom<LocalPostgresBinding> for LocalPostgresBinding
impl TryFrom<LocalPostgresBinding> for LocalPostgresBinding
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: LocalPostgresBinding) -> Result<Self, ConversionError>
fn try_from(value: LocalPostgresBinding) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for LocalPostgresBinding
impl Freeze for LocalPostgresBinding
impl RefUnwindSafe for LocalPostgresBinding
impl Send for LocalPostgresBinding
impl Sync for LocalPostgresBinding
impl Unpin for LocalPostgresBinding
impl UnsafeUnpin for LocalPostgresBinding
impl UnwindSafe for LocalPostgresBinding
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