pub struct PostgresConfig {
pub version: Option<String>,
pub image: Option<String>,
pub database: Option<String>,
pub user: Option<String>,
pub password: Option<String>,
pub port: Option<u16>,
pub volume: Option<Volume>,
pub healthcheck: Option<Healthcheck>,
pub depends_on: Vec<String>,
}Expand description
Configuration of a PostgreSQL resource.
Fields§
§version: Option<String>Major version. Expanded into postgres:<version>-alpine by the
runtime when image is unset.
image: Option<String>Explicit image reference. Takes precedence over version when
both are set.
database: Option<String>Initial database name. Defaults to the resource name when unset.
user: Option<String>Superuser name. Defaults to "postgres" when unset.
password: Option<String>Superuser password. Generated by the runtime when unset.
port: Option<u16>Container port. Defaults to 5432 when unset.
volume: Option<Volume>Persistent volume configuration. Defaults to an auto-named volume when unset.
healthcheck: Option<Healthcheck>Override of the default pg_isready healthcheck.
depends_on: Vec<String>Names of resources this PostgreSQL instance explicitly depends on.
Trait Implementations§
Source§impl Clone for PostgresConfig
impl Clone for PostgresConfig
Source§fn clone(&self) -> PostgresConfig
fn clone(&self) -> PostgresConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PostgresConfig
impl Debug for PostgresConfig
Source§impl Default for PostgresConfig
impl Default for PostgresConfig
Source§fn default() -> PostgresConfig
fn default() -> PostgresConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PostgresConfig
impl<'de> Deserialize<'de> for PostgresConfig
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
impl Eq for PostgresConfig
Source§impl JsonSchema for PostgresConfig
impl JsonSchema for PostgresConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for PostgresConfig
impl PartialEq for PostgresConfig
Source§fn eq(&self, other: &PostgresConfig) -> bool
fn eq(&self, other: &PostgresConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PostgresConfig
impl Serialize for PostgresConfig
impl StructuralPartialEq for PostgresConfig
Auto Trait Implementations§
impl Freeze for PostgresConfig
impl RefUnwindSafe for PostgresConfig
impl Send for PostgresConfig
impl Sync for PostgresConfig
impl Unpin for PostgresConfig
impl UnsafeUnpin for PostgresConfig
impl UnwindSafe for PostgresConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.