pub struct Input { /* private fields */ }Expand description
Represents a File or Directory input to a task.
Implementations§
Source§impl Input
impl Input
Sourcepub fn kind(&self) -> ContentKind
pub fn kind(&self) -> ContentKind
Gets the content kind of the input.
Sourcepub fn path(&self) -> &EvaluationPath
pub fn path(&self) -> &EvaluationPath
Gets the path to the input.
The path of the input may be local or remote.
Sourcepub fn guest_path(&self) -> Option<&GuestPath>
pub fn guest_path(&self) -> Option<&GuestPath>
Gets the guest path for the input.
This is None for inputs to backends that don’t use containers.
Sourcepub fn local_path(&self) -> Option<&Path>
pub fn local_path(&self) -> Option<&Path>
Gets the local path of the input.
Returns None if the input is remote and has not been localized.
Sourcepub fn set_location(&mut self, location: Location)
pub fn set_location(&mut self, location: Location)
Sets the location of the input.
This is used during localization to set a local path for remote inputs.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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