pub struct GetTargetsBuilder { /* private fields */ }Expand description
Builder for GetTargets.
Implementations§
Source§impl GetTargetsBuilder
impl GetTargetsBuilder
Sourcepub fn filter<VALUE: Into<TargetFilter>>(&mut self, value: VALUE) -> &mut Self
pub fn filter<VALUE: Into<TargetFilter>>(&mut self, value: VALUE) -> &mut Self
Only targets matching filter will be reported. If filter is not specified and target discovery is currently enabled, a filter used for target discovery is used for consistency.
Sourcepub fn build(&self) -> Result<GetTargets, GetTargetsBuilderError>
pub fn build(&self) -> Result<GetTargets, GetTargetsBuilderError>
Trait Implementations§
Source§impl Clone for GetTargetsBuilder
impl Clone for GetTargetsBuilder
Source§fn clone(&self) -> GetTargetsBuilder
fn clone(&self) -> GetTargetsBuilder
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 moreAuto Trait Implementations§
impl Freeze for GetTargetsBuilder
impl RefUnwindSafe for GetTargetsBuilder
impl Send for GetTargetsBuilder
impl Sync for GetTargetsBuilder
impl Unpin for GetTargetsBuilder
impl UnsafeUnpin for GetTargetsBuilder
impl UnwindSafe for GetTargetsBuilder
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