pub struct PostgresOutputs {
pub endpoint: String,
pub database: String,
pub port: Option<u16>,
}Expand description
Outputs generated by a successfully provisioned Postgres database.
Fields§
§endpoint: StringHost (or host:port) the database listens on; never publicly reachable.
database: StringThe default database created for this resource. On cloud backends this is the fixed
label POSTGRES_DATABASE_NAME (alien); on Local it is the resource id.
port: Option<u16>Listening port, when known.
Trait Implementations§
Source§impl Clone for PostgresOutputs
impl Clone for PostgresOutputs
Source§fn clone(&self) -> PostgresOutputs
fn clone(&self) -> PostgresOutputs
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 PostgresOutputs
impl Debug for PostgresOutputs
Source§impl<'de> Deserialize<'de> for PostgresOutputs
impl<'de> Deserialize<'de> for PostgresOutputs
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 PostgresOutputs
Source§impl PartialEq for PostgresOutputs
impl PartialEq for PostgresOutputs
Source§fn eq(&self, other: &PostgresOutputs) -> bool
fn eq(&self, other: &PostgresOutputs) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ResourceOutputsDefinition for PostgresOutputs
impl ResourceOutputsDefinition for PostgresOutputs
Source§fn get_resource_type(&self) -> ResourceType
fn get_resource_type(&self) -> ResourceType
Returns the resource type for this instance
Source§fn box_clone(&self) -> Box<dyn ResourceOutputsDefinition>
fn box_clone(&self) -> Box<dyn ResourceOutputsDefinition>
Creates a boxed clone of this resource outputs
Source§fn outputs_eq(&self, other: &dyn ResourceOutputsDefinition) -> bool
fn outputs_eq(&self, other: &dyn ResourceOutputsDefinition) -> bool
For equality comparison between resource outputs
Source§fn to_json_value(&self) -> Result<Value>
fn to_json_value(&self) -> Result<Value>
Serialize this resource outputs to a JSON value (without the “type” tag - that’s added by ResourceOutputs)
Source§impl Serialize for PostgresOutputs
impl Serialize for PostgresOutputs
impl StructuralPartialEq for PostgresOutputs
Auto Trait Implementations§
impl Freeze for PostgresOutputs
impl RefUnwindSafe for PostgresOutputs
impl Send for PostgresOutputs
impl Sync for PostgresOutputs
impl Unpin for PostgresOutputs
impl UnsafeUnpin for PostgresOutputs
impl UnwindSafe for PostgresOutputs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.