#[non_exhaustive]pub struct CodegenDependencyBuilder { /* private fields */ }Expand description
A builder for CodegenDependency.
Implementations§
source§impl CodegenDependencyBuilder
impl CodegenDependencyBuilder
sourcepub fn supported_version(self, input: impl Into<String>) -> Self
pub fn supported_version(self, input: impl Into<String>) -> Self
Indicates the version of the supported dependency package.
sourcepub fn set_supported_version(self, input: Option<String>) -> Self
pub fn set_supported_version(self, input: Option<String>) -> Self
Indicates the version of the supported dependency package.
sourcepub fn get_supported_version(&self) -> &Option<String>
pub fn get_supported_version(&self) -> &Option<String>
Indicates the version of the supported dependency package.
sourcepub fn is_sem_ver(self, input: bool) -> Self
pub fn is_sem_ver(self, input: bool) -> Self
Determines if the dependency package is using Semantic versioning. If set to true, it indicates that the dependency package uses Semantic versioning.
sourcepub fn set_is_sem_ver(self, input: Option<bool>) -> Self
pub fn set_is_sem_ver(self, input: Option<bool>) -> Self
Determines if the dependency package is using Semantic versioning. If set to true, it indicates that the dependency package uses Semantic versioning.
sourcepub fn get_is_sem_ver(&self) -> &Option<bool>
pub fn get_is_sem_ver(&self) -> &Option<bool>
Determines if the dependency package is using Semantic versioning. If set to true, it indicates that the dependency package uses Semantic versioning.
sourcepub fn reason(self, input: impl Into<String>) -> Self
pub fn reason(self, input: impl Into<String>) -> Self
Indicates the reason to include the dependency package in your project code.
sourcepub fn set_reason(self, input: Option<String>) -> Self
pub fn set_reason(self, input: Option<String>) -> Self
Indicates the reason to include the dependency package in your project code.
sourcepub fn get_reason(&self) -> &Option<String>
pub fn get_reason(&self) -> &Option<String>
Indicates the reason to include the dependency package in your project code.
sourcepub fn build(self) -> CodegenDependency
pub fn build(self) -> CodegenDependency
Consumes the builder and constructs a CodegenDependency.
Trait Implementations§
source§impl Clone for CodegenDependencyBuilder
impl Clone for CodegenDependencyBuilder
source§fn clone(&self) -> CodegenDependencyBuilder
fn clone(&self) -> CodegenDependencyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CodegenDependencyBuilder
impl Debug for CodegenDependencyBuilder
source§impl Default for CodegenDependencyBuilder
impl Default for CodegenDependencyBuilder
source§fn default() -> CodegenDependencyBuilder
fn default() -> CodegenDependencyBuilder
source§impl PartialEq for CodegenDependencyBuilder
impl PartialEq for CodegenDependencyBuilder
source§fn eq(&self, other: &CodegenDependencyBuilder) -> bool
fn eq(&self, other: &CodegenDependencyBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CodegenDependencyBuilder
Auto Trait Implementations§
impl Freeze for CodegenDependencyBuilder
impl RefUnwindSafe for CodegenDependencyBuilder
impl Send for CodegenDependencyBuilder
impl Sync for CodegenDependencyBuilder
impl Unpin for CodegenDependencyBuilder
impl UnwindSafe for CodegenDependencyBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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