pub struct Input { /* private fields */ }Expand description
Represents a File or Directory input to a task.
Implementations§
Source§impl Input
impl Input
Sourcepub fn new(kind: InputKind, path: EvaluationPath) -> Self
pub fn new(kind: InputKind, path: EvaluationPath) -> Self
Creates a new input with the given path and access.
Sourcepub fn from_primitive(value: &PrimitiveValue) -> Result<Self>
pub fn from_primitive(value: &PrimitiveValue) -> Result<Self>
Creates an input from a primitive value.
Sourcepub fn path(&self) -> &EvaluationPath
pub fn path(&self) -> &EvaluationPath
Gets the path to the input.
Sourcepub fn location(&self) -> Option<&Path>
pub fn location(&self) -> Option<&Path>
Gets the location of the input if it has been downloaded.
Sourcepub fn set_location(&mut self, location: Location<'static>)
pub fn set_location(&mut self, location: Location<'static>)
Sets the location of the input.
Sourcepub fn guest_path(&self) -> Option<&str>
pub fn guest_path(&self) -> Option<&str>
Gets the guest path for the input.
Sourcepub fn set_guest_path(&mut self, path: impl Into<String>)
pub fn set_guest_path(&mut self, path: impl Into<String>)
Sets the guest path for the input.
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