#[non_exhaustive]pub struct Version {
pub version_number: String,
pub default_version: bool,
pub available_features: Vec<String>,
pub type: Type,
/* private fields */
}Expand description
The Data Fusion version. This proto message stores information about certain Data Fusion version, which is used for Data Fusion version upgrade.
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.version_number: StringThe version number of the Data Fusion instance, such as ‘6.0.1.0’.
default_version: boolWhether this is currently the default version for Cloud Data Fusion
available_features: Vec<String>Represents a list of available feature names for a given version.
type: TypeType represents the release availability of the version
Implementations§
Source§impl Version
impl Version
pub fn new() -> Self
Sourcepub fn set_version_number<T: Into<String>>(self, v: T) -> Self
pub fn set_version_number<T: Into<String>>(self, v: T) -> Self
Sets the value of version_number.
Sourcepub fn set_default_version<T: Into<bool>>(self, v: T) -> Self
pub fn set_default_version<T: Into<bool>>(self, v: T) -> Self
Sets the value of default_version.
Sourcepub fn set_available_features<T, V>(self, v: T) -> Self
pub fn set_available_features<T, V>(self, v: T) -> Self
Sets the value of available_features.
Trait Implementations§
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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