#[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.
This field is required.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) -> Result<SourceFileSpecifier, BuildError>
pub fn build(self) -> Result<SourceFileSpecifier, BuildError>
Consumes the builder and constructs a SourceFileSpecifier.
This method will fail if any of the following fields are not set:
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 for SourceFileSpecifierBuilder
impl PartialEq 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 Freeze for SourceFileSpecifierBuilder
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
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>
Creates a shared type from an unshared type.