pub struct TypeGenerationConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> TypeGenerationConfigBuilder<S>
impl<S: State> TypeGenerationConfigBuilder<S>
Sourcepub fn build(self) -> TypeGenerationConfigwhere
S: IsComplete,
pub fn build(self) -> TypeGenerationConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn nominal_resources(
self,
value: bool,
) -> TypeGenerationConfigBuilder<SetNominalResources<S>>where
S::NominalResources: IsUnset,
pub fn nominal_resources(
self,
value: bool,
) -> TypeGenerationConfigBuilder<SetNominalResources<S>>where
S::NominalResources: IsUnset,
Sourcepub fn maybe_nominal_resources(
self,
value: Option<bool>,
) -> TypeGenerationConfigBuilder<SetNominalResources<S>>where
S::NominalResources: IsUnset,
pub fn maybe_nominal_resources(
self,
value: Option<bool>,
) -> TypeGenerationConfigBuilder<SetNominalResources<S>>where
S::NominalResources: IsUnset,
Sourcepub fn async_imports_may_return_sync(
self,
value: bool,
) -> TypeGenerationConfigBuilder<SetAsyncImportsMayReturnSync<S>>where
S::AsyncImportsMayReturnSync: IsUnset,
pub fn async_imports_may_return_sync(
self,
value: bool,
) -> TypeGenerationConfigBuilder<SetAsyncImportsMayReturnSync<S>>where
S::AsyncImportsMayReturnSync: IsUnset,
Sourcepub fn maybe_async_imports_may_return_sync(
self,
value: Option<bool>,
) -> TypeGenerationConfigBuilder<SetAsyncImportsMayReturnSync<S>>where
S::AsyncImportsMayReturnSync: IsUnset,
pub fn maybe_async_imports_may_return_sync(
self,
value: Option<bool>,
) -> TypeGenerationConfigBuilder<SetAsyncImportsMayReturnSync<S>>where
S::AsyncImportsMayReturnSync: IsUnset,
Sourcepub fn typed_error_classes(
self,
value: bool,
) -> TypeGenerationConfigBuilder<SetTypedErrorClasses<S>>where
S::TypedErrorClasses: IsUnset,
pub fn typed_error_classes(
self,
value: bool,
) -> TypeGenerationConfigBuilder<SetTypedErrorClasses<S>>where
S::TypedErrorClasses: IsUnset,
Sourcepub fn maybe_typed_error_classes(
self,
value: Option<bool>,
) -> TypeGenerationConfigBuilder<SetTypedErrorClasses<S>>where
S::TypedErrorClasses: IsUnset,
pub fn maybe_typed_error_classes(
self,
value: Option<bool>,
) -> TypeGenerationConfigBuilder<SetTypedErrorClasses<S>>where
S::TypedErrorClasses: IsUnset,
Sourcepub fn separate_interface_types(
self,
value: bool,
) -> TypeGenerationConfigBuilder<SetSeparateInterfaceTypes<S>>where
S::SeparateInterfaceTypes: IsUnset,
pub fn separate_interface_types(
self,
value: bool,
) -> TypeGenerationConfigBuilder<SetSeparateInterfaceTypes<S>>where
S::SeparateInterfaceTypes: IsUnset,
Sourcepub fn maybe_separate_interface_types(
self,
value: Option<bool>,
) -> TypeGenerationConfigBuilder<SetSeparateInterfaceTypes<S>>where
S::SeparateInterfaceTypes: IsUnset,
pub fn maybe_separate_interface_types(
self,
value: Option<bool>,
) -> TypeGenerationConfigBuilder<SetSeparateInterfaceTypes<S>>where
S::SeparateInterfaceTypes: IsUnset,
Auto Trait Implementations§
impl<S> Forget for TypeGenerationConfigBuilder<S>
impl<S> Freeze for TypeGenerationConfigBuilder<S>
impl<S> Move for TypeGenerationConfigBuilder<S>
impl<S> RefUnwindSafe for TypeGenerationConfigBuilder<S>
impl<S> Send for TypeGenerationConfigBuilder<S>
impl<S> Sync for TypeGenerationConfigBuilder<S>
impl<S> Unpin for TypeGenerationConfigBuilder<S>
impl<S> UnsafeUnpin for TypeGenerationConfigBuilder<S>
impl<S> UnwindSafe for TypeGenerationConfigBuilder<S>
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more