Struct controller::extensions::types::ExtensionInstallLocation
source · pub struct ExtensionInstallLocation {
pub enabled: bool,
pub database: String,
pub version: Option<String>,
pub schema: Option<String>,
}
Expand description
ExtensionInstallLocation lets you specify the database, schema, and version to enable an extension on.
Fields§
§enabled: bool
Enable or disable the extension on this Postgres instance.
database: String
The database to enable the extension on.
Default: “postgres”
version: Option<String>
The extension version to install. If not specified, the latest version will be used.
schema: Option<String>
The schema to enable the extension on. (eg: “public”)
Trait Implementations§
source§impl Clone for ExtensionInstallLocation
impl Clone for ExtensionInstallLocation
source§fn clone(&self) -> ExtensionInstallLocation
fn clone(&self) -> ExtensionInstallLocation
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 ExtensionInstallLocation
impl Debug for ExtensionInstallLocation
source§impl Default for ExtensionInstallLocation
impl Default for ExtensionInstallLocation
source§impl<'de> Deserialize<'de> for ExtensionInstallLocation
impl<'de> Deserialize<'de> for ExtensionInstallLocation
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<ExtensionInstallLocationStatus> for ExtensionInstallLocation
impl From<ExtensionInstallLocationStatus> for ExtensionInstallLocation
source§fn from(status: ExtensionInstallLocationStatus) -> Self
fn from(status: ExtensionInstallLocationStatus) -> Self
Converts to this type from the input type.
source§impl Hash for ExtensionInstallLocation
impl Hash for ExtensionInstallLocation
source§impl JsonSchema for ExtensionInstallLocation
impl JsonSchema for ExtensionInstallLocation
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for ExtensionInstallLocation
impl PartialEq for ExtensionInstallLocation
source§fn eq(&self, other: &ExtensionInstallLocation) -> bool
fn eq(&self, other: &ExtensionInstallLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ExtensionInstallLocation
impl Serialize for ExtensionInstallLocation
source§impl<'__s> ToSchema<'__s> for ExtensionInstallLocation
impl<'__s> ToSchema<'__s> for ExtensionInstallLocation
impl Eq for ExtensionInstallLocation
impl StructuralPartialEq for ExtensionInstallLocation
Auto Trait Implementations§
impl RefUnwindSafe for ExtensionInstallLocation
impl Send for ExtensionInstallLocation
impl Sync for ExtensionInstallLocation
impl Unpin for ExtensionInstallLocation
impl UnwindSafe for ExtensionInstallLocation
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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.