pub struct DependencyBuilder { /* private fields */ }
Expand description
Builder for Dependency
.
Implementations§
Source§impl DependencyBuilder
impl DependencyBuilder
Sourcepub fn group_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn group_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The group id of the dependency.
<groupId>com.google.guava</groupId>
Sourcepub fn artifact_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn artifact_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The artifact id of the dependency.
<artifactId>guava</artifactId>
Sourcepub fn version<VALUE: Into<Property>>(&mut self, value: VALUE) -> &mut Self
pub fn version<VALUE: Into<Property>>(&mut self, value: VALUE) -> &mut Self
The version of the dependency.
<version>1.0.0</version>
Sourcepub fn depend_type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn depend_type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The type of the dependency.
<type>jar</type>
pub fn scope<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn classifier<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<Dependency, DependencyBuilderError>
pub fn build(&self) -> Result<Dependency, DependencyBuilderError>
Trait Implementations§
Source§impl Clone for DependencyBuilder
impl Clone for DependencyBuilder
Source§fn clone(&self) -> DependencyBuilder
fn clone(&self) -> DependencyBuilder
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 moreAuto Trait Implementations§
impl Freeze for DependencyBuilder
impl RefUnwindSafe for DependencyBuilder
impl Send for DependencyBuilder
impl Sync for DependencyBuilder
impl Unpin for DependencyBuilder
impl UnwindSafe for DependencyBuilder
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