Struct controller::extensions::types::Extension
source · pub struct Extension {
pub name: String,
pub description: Option<String>,
pub locations: Vec<ExtensionInstallLocation>,
}
Expand description
Extension lets you define a list of extensions to enable on the instance. To enable
extensions, you must specify the name of the extension and the database, schema, and
version to enable it on. If the version is not specified, the latest version will be
used. The extension must also be installed on the instance. To install
extensions, please refer to the TrunkInstall
resource.
This example will enable the pg_stat_statements extension on the Postgres database in the public schema.
apiVersion: coredb.io/v1alpha1
kind: CoreDB
metadata:
name: test-db
spec:
extensions:
- name: pg_stat_statements
locations:
- database: postgres
enabled: true
schema: public
version: 1.10.0
Fields§
§name: String
The name of the extension to enable.
description: Option<String>
A description of the extension. (Optional)
Default: “No description provided”
locations: Vec<ExtensionInstallLocation>
A list of locations (databases) to enabled the extension on.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Extension
impl<'de> Deserialize<'de> for Extension
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<ExtensionStatus> for Extension
impl From<ExtensionStatus> for Extension
source§fn from(status: ExtensionStatus) -> Self
fn from(status: ExtensionStatus) -> Self
Converts to this type from the input type.
source§impl JsonSchema for Extension
impl JsonSchema for Extension
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 Extension
impl PartialEq for Extension
source§impl<'__s> ToSchema<'__s> for Extension
impl<'__s> ToSchema<'__s> for Extension
impl Eq for Extension
impl StructuralPartialEq for Extension
Auto Trait Implementations§
impl RefUnwindSafe for Extension
impl Send for Extension
impl Sync for Extension
impl Unpin for Extension
impl UnwindSafe for Extension
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.