#[non_exhaustive]pub struct SourceFileSpecifierBuilder { /* private fields */ }Expand description
A builder for SourceFileSpecifier.
Implementations§
source§impl SourceFileSpecifierBuilder
impl SourceFileSpecifierBuilder
sourcepub fn file_path(self, input: impl Into<String>) -> Self
pub fn file_path(self, input: impl Into<String>) -> Self
The full path to the file, including the name of the file.
sourcepub fn set_file_path(self, input: Option<String>) -> Self
pub fn set_file_path(self, input: Option<String>) -> Self
The full path to the file, including the name of the file.
sourcepub fn get_file_path(&self) -> &Option<String>
pub fn get_file_path(&self) -> &Option<String>
The full path to the file, including the name of the file.
sourcepub fn is_move(self, input: bool) -> Self
pub fn is_move(self, input: bool) -> Self
Whether to remove the source file from the parent commit.
sourcepub fn set_is_move(self, input: Option<bool>) -> Self
pub fn set_is_move(self, input: Option<bool>) -> Self
Whether to remove the source file from the parent commit.
sourcepub fn get_is_move(&self) -> &Option<bool>
pub fn get_is_move(&self) -> &Option<bool>
Whether to remove the source file from the parent commit.
sourcepub fn build(self) -> SourceFileSpecifier
pub fn build(self) -> SourceFileSpecifier
Consumes the builder and constructs a SourceFileSpecifier.
Trait Implementations§
source§impl Clone for SourceFileSpecifierBuilder
impl Clone for SourceFileSpecifierBuilder
source§fn clone(&self) -> SourceFileSpecifierBuilder
fn clone(&self) -> SourceFileSpecifierBuilder
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 SourceFileSpecifierBuilder
impl Debug for SourceFileSpecifierBuilder
source§impl Default for SourceFileSpecifierBuilder
impl Default for SourceFileSpecifierBuilder
source§fn default() -> SourceFileSpecifierBuilder
fn default() -> SourceFileSpecifierBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<SourceFileSpecifierBuilder> for SourceFileSpecifierBuilder
impl PartialEq<SourceFileSpecifierBuilder> for SourceFileSpecifierBuilder
source§fn eq(&self, other: &SourceFileSpecifierBuilder) -> bool
fn eq(&self, other: &SourceFileSpecifierBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SourceFileSpecifierBuilder
Auto Trait Implementations§
impl RefUnwindSafe for SourceFileSpecifierBuilder
impl Send for SourceFileSpecifierBuilder
impl Sync for SourceFileSpecifierBuilder
impl Unpin for SourceFileSpecifierBuilder
impl UnwindSafe for SourceFileSpecifierBuilder
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