pub struct ExtensionInstallLocation {
pub database: Option<String>,
pub enabled: bool,
pub schema: Option<Option<String>>,
pub version: Option<Option<String>>,
}Expand description
ExtensionInstallLocation : ExtensionInstallLocation lets you specify the database, schema, and version to enable an extension on.
Fields§
§database: Option<String>The database to enable the extension on. Default: "postgres"
enabled: boolEnable or disable the extension on this Postgres instance.
schema: Option<Option<String>>The schema to enable the extension on. (eg: "public")
version: Option<Option<String>>The extension version to install. If not specified, the latest version will be used.
Implementations§
Source§impl ExtensionInstallLocation
impl ExtensionInstallLocation
Sourcepub fn new(enabled: bool) -> ExtensionInstallLocation
pub fn new(enabled: bool) -> ExtensionInstallLocation
ExtensionInstallLocation lets you specify the database, schema, and version to enable an extension on.
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§fn default() -> ExtensionInstallLocation
fn default() -> ExtensionInstallLocation
Returns the “default value” for a type. Read more
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 PartialEq for ExtensionInstallLocation
impl PartialEq for ExtensionInstallLocation
Source§impl Serialize for ExtensionInstallLocation
impl Serialize for ExtensionInstallLocation
impl StructuralPartialEq for ExtensionInstallLocation
Auto Trait Implementations§
impl Freeze for ExtensionInstallLocation
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