#[non_exhaustive]pub struct PythonSettings {
pub common: Option<CommonLanguageSettings>,
pub experimental_features: Option<ExperimentalFeatures>,
/* private fields */
}
Expand description
Settings for Python client libraries.
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.common: Option<CommonLanguageSettings>
Some settings.
experimental_features: Option<ExperimentalFeatures>
Experimental features to be included during client library generation.
Implementations§
Source§impl PythonSettings
impl PythonSettings
pub fn new() -> Self
Sourcepub fn set_common<T>(self, v: T) -> Selfwhere
T: Into<CommonLanguageSettings>,
pub fn set_common<T>(self, v: T) -> Selfwhere
T: Into<CommonLanguageSettings>,
Sets the value of common.
Sourcepub fn set_or_clear_common<T>(self, v: Option<T>) -> Selfwhere
T: Into<CommonLanguageSettings>,
pub fn set_or_clear_common<T>(self, v: Option<T>) -> Selfwhere
T: Into<CommonLanguageSettings>,
Sets or clears the value of common.
Sourcepub fn set_experimental_features<T>(self, v: T) -> Selfwhere
T: Into<ExperimentalFeatures>,
pub fn set_experimental_features<T>(self, v: T) -> Selfwhere
T: Into<ExperimentalFeatures>,
Sets the value of experimental_features.
Sourcepub fn set_or_clear_experimental_features<T>(self, v: Option<T>) -> Selfwhere
T: Into<ExperimentalFeatures>,
pub fn set_or_clear_experimental_features<T>(self, v: Option<T>) -> Selfwhere
T: Into<ExperimentalFeatures>,
Sets or clears the value of experimental_features.
Trait Implementations§
Source§impl Clone for PythonSettings
impl Clone for PythonSettings
Source§fn clone(&self) -> PythonSettings
fn clone(&self) -> PythonSettings
Returns a duplicate 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 PythonSettings
impl Debug for PythonSettings
Source§impl Default for PythonSettings
impl Default for PythonSettings
Source§fn default() -> PythonSettings
fn default() -> PythonSettings
Returns the “default value” for a type. Read more
Source§impl Message for PythonSettings
impl Message for PythonSettings
Source§impl PartialEq for PythonSettings
impl PartialEq for PythonSettings
impl StructuralPartialEq for PythonSettings
Auto Trait Implementations§
impl Freeze for PythonSettings
impl RefUnwindSafe for PythonSettings
impl Send for PythonSettings
impl Sync for PythonSettings
impl Unpin for PythonSettings
impl UnwindSafe for PythonSettings
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