pub struct PathParameterOptions<'a> {
pub job_template_dir: &'a str,
pub current_working_dir: &'a str,
pub path_format: PathFormat,
pub allow_template_dir_walk_up: bool,
pub allow_uri_path_values: bool,
}Expand description
Options controlling how PATH parameters are resolved in preprocess_job_parameters.
Fields§
§job_template_dir: &'a strDirectory containing the job template. Relative PATH defaults are joined to this.
current_working_dir: &'a strCurrent working directory. Relative PATH user values are joined to this.
path_format: PathFormatHow path strings are interpreted for absolute/relative checks.
Use PathFormat::host() for local filesystem paths, or PathFormat::Posix /
PathFormat::Windows when paths originate from a known platform.
allow_template_dir_walk_up: boolIf false, PATH defaults must be relative and within job_template_dir.
If true, absolute defaults and .. walk-up are permitted.
allow_uri_path_values: boolIf true, URI values (scheme://...) in PATH parameters are preserved as-is
(requires EXPR extension). If false with EXPR, URIs are rejected with an error.
Without EXPR, this flag is ignored — URIs are treated as opaque relative strings.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PathParameterOptions<'a>
impl<'a> RefUnwindSafe for PathParameterOptions<'a>
impl<'a> Send for PathParameterOptions<'a>
impl<'a> Sync for PathParameterOptions<'a>
impl<'a> Unpin for PathParameterOptions<'a>
impl<'a> UnsafeUnpin for PathParameterOptions<'a>
impl<'a> UnwindSafe for PathParameterOptions<'a>
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
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>
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>
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