Struct fhttp_core::request_sources::RequestSource
source · pub struct RequestSource {
pub source_path: CanonicalizedPathBuf,
pub text: String,
pub dependency: bool,
}
Fields§
§source_path: CanonicalizedPathBuf
§text: String
§dependency: bool
Implementations§
source§impl RequestSource
impl RequestSource
pub fn from_file<P: AsRef<Path>>(path: P, dependency: bool) -> Result<Self>
pub fn dependencies(&self) -> Result<Vec<CanonicalizedPathBuf>>
pub fn request_dependencies(&self) -> Result<Vec<RequestDependencyEval<'_>>>
pub fn parse(self) -> Result<RequestWrapper>
Trait Implementations§
source§impl AsRef<Path> for RequestSource
impl AsRef<Path> for RequestSource
source§impl PartialEq for RequestSource
impl PartialEq for RequestSource
source§impl VariableSupport for RequestSource
impl VariableSupport for RequestSource
fn get_env_vars(&self) -> Vec<EnvVarOccurrence<'_>>
fn replace_variables( &mut self, profile: &Profile, config: &Config, response_store: &ResponseStore ) -> Result<()>
Auto Trait Implementations§
impl Freeze for RequestSource
impl RefUnwindSafe for RequestSource
impl Send for RequestSource
impl Sync for RequestSource
impl Unpin for RequestSource
impl UnwindSafe for RequestSource
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