#[non_exhaustive]pub struct RequestedConfig {
pub database_version: String,
/* private fields */
}Expand description
Configuration specified by the user at creation time for the target (green) instance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.database_version: StringOptional. The target database major version for the upgrade. For example,
MYSQL_8_0 or POSTGRES_15.
Implementations§
Source§impl RequestedConfig
impl RequestedConfig
Sourcepub fn set_database_version<T: Into<String>>(self, v: T) -> Self
pub fn set_database_version<T: Into<String>>(self, v: T) -> Self
Sets the value of database_version.
§Example
ⓘ
let x = RequestedConfig::new().set_database_version("example");Trait Implementations§
Source§impl Clone for RequestedConfig
impl Clone for RequestedConfig
Source§impl Debug for RequestedConfig
impl Debug for RequestedConfig
Source§impl Default for RequestedConfig
impl Default for RequestedConfig
Source§impl Message for RequestedConfig
impl Message for RequestedConfig
Source§impl PartialEq for RequestedConfig
impl PartialEq for RequestedConfig
impl StructuralPartialEq for RequestedConfig
Auto Trait Implementations§
impl Freeze for RequestedConfig
impl RefUnwindSafe for RequestedConfig
impl Send for RequestedConfig
impl Sync for RequestedConfig
impl Unpin for RequestedConfig
impl UnsafeUnpin for RequestedConfig
impl UnwindSafe for RequestedConfig
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