#[non_exhaustive]pub struct PythonSettings {
pub common: Option<CommonLanguageSettings>,
pub experimental_features: Option<ExperimentalFeatures>,
}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
Sourcepub fn set_common<T: Into<Option<CommonLanguageSettings>>>(self, v: T) -> Self
pub fn set_common<T: Into<Option<CommonLanguageSettings>>>(self, v: T) -> Self
Sets the value of common.
Sourcepub fn set_experimental_features<T: Into<Option<ExperimentalFeatures>>>(
self,
v: T,
) -> Self
pub fn set_experimental_features<T: Into<Option<ExperimentalFeatures>>>( self, v: T, ) -> Self
Sets 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 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 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<'de> Deserialize<'de> for PythonSettingswhere
PythonSettings: Default,
impl<'de> Deserialize<'de> for PythonSettingswhere
PythonSettings: Default,
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 Message for PythonSettings
impl Message for PythonSettings
Source§impl PartialEq for PythonSettings
impl PartialEq for PythonSettings
Source§impl Serialize for PythonSettings
impl Serialize 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