[][src]Struct fhttp_core::Request

pub struct Request {
    pub source_path: PathBuf,
    pub text: String,
    pub dependency: bool,
}

Fields

source_path: PathBuftext: Stringdependency: bool

Implementations

impl Request[src]

pub fn new<P: Into<PathBuf>, T: Into<String>>(path: P, text: T) -> Result<Self>[src]

pub fn depdendency<P: Into<PathBuf>, T: Into<String>>(
    path: P,
    text: T
) -> Result<Self>
[src]

pub fn from_file(path: &Path, dependency: bool) -> Result<Self>[src]

pub fn method(&self) -> Result<Method>[src]

pub fn url(&self) -> Result<&str>[src]

pub fn headers(&self) -> Result<HeaderMap>[src]

pub fn dependencies(&self) -> Vec<PathBuf>[src]

pub fn gql_file(&self) -> bool[src]

pub fn get_dependency_path(&self, path: &str) -> PathBuf[src]

Trait Implementations

impl Debug for Request[src]

impl Eq for Request[src]

impl PartialEq<Request> for Request[src]

impl RequestResponseHandlerExt for Request[src]

impl StructuralEq for Request[src]

impl VariableSupport for Request[src]

Auto Trait Implementations

impl RefUnwindSafe for Request

impl Send for Request

impl Sync for Request

impl Unpin for Request

impl UnwindSafe for Request

Blanket Implementations

impl<T> Also for T[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, Res> Apply<Res> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,