pub struct DirectedCore {
pub headers: HeaderMap,
pub method: Method,
pub uri: Url,
pub body: Substance,
}
Fields§
§headers: HeaderMap
§method: Method
§uri: Url
§body: Substance
Implementations§
Source§impl DirectedCore
impl DirectedCore
Source§impl DirectedCore
impl DirectedCore
pub fn kind(&self) -> MethodKind
Source§impl DirectedCore
impl DirectedCore
pub fn with_body(self, body: Substance) -> Self
pub fn server_error(&self) -> ReflectedCore
pub fn timeout(&self) -> ReflectedCore
pub fn not_found(&self) -> ReflectedCore
pub fn forbidden(&self) -> ReflectedCore
pub fn bad_request(&self) -> ReflectedCore
pub fn substance(method: Method, body: Substance) -> DirectedCore
pub fn ok(&self) -> ReflectedCore
pub fn ok_body(&self, body: Substance) -> ReflectedCore
pub fn fail<M: ToString>(&self, status: u16, message: M) -> ReflectedCore
pub fn err<E: StatusErr>(&self, error: E) -> ReflectedCore
Trait Implementations§
Source§impl Clone for DirectedCore
impl Clone for DirectedCore
Source§fn clone(&self) -> DirectedCore
fn clone(&self) -> DirectedCore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DirectedCore
impl Debug for DirectedCore
Source§impl Default for DirectedCore
impl Default for DirectedCore
Source§impl<'de> Deserialize<'de> for DirectedCore
impl<'de> Deserialize<'de> for DirectedCore
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<DirectedCore> for Substance
impl From<DirectedCore> for Substance
Source§fn from(f: DirectedCore) -> Substance
fn from(f: DirectedCore) -> Substance
Converts to this type from the input type.
Source§impl Into<DirectedCore> for Assign
impl Into<DirectedCore> for Assign
Source§fn into(self) -> DirectedCore
fn into(self) -> DirectedCore
Converts this type into the (usually inferred) input type.
Source§impl Into<DirectedCore> for Command
impl Into<DirectedCore> for Command
Source§fn into(self) -> DirectedCore
fn into(self) -> DirectedCore
Converts this type into the (usually inferred) input type.
Source§impl Into<DirectedCore> for Create
impl Into<DirectedCore> for Create
Source§fn into(self) -> DirectedCore
fn into(self) -> DirectedCore
Converts this type into the (usually inferred) input type.
Source§impl Into<DirectedCore> for HttpRequest
impl Into<DirectedCore> for HttpRequest
Source§fn into(self) -> DirectedCore
fn into(self) -> DirectedCore
Converts this type into the (usually inferred) input type.
Source§impl Into<DirectedCore> for Method
impl Into<DirectedCore> for Method
Source§fn into(self) -> DirectedCore
fn into(self) -> DirectedCore
Converts this type into the (usually inferred) input type.
Source§impl Into<DirectedCore> for Provision
impl Into<DirectedCore> for Provision
Source§fn into(self) -> DirectedCore
fn into(self) -> DirectedCore
Converts this type into the (usually inferred) input type.
Source§impl Into<DirectedCore> for RawCommand
impl Into<DirectedCore> for RawCommand
Source§fn into(self) -> DirectedCore
fn into(self) -> DirectedCore
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for DirectedCore
impl PartialEq for DirectedCore
Source§impl Serialize for DirectedCore
impl Serialize for DirectedCore
Source§impl ToSubstance<DirectedCore> for Substance
impl ToSubstance<DirectedCore> for Substance
fn to_substance(self) -> Result<DirectedCore, SpaceErr>
fn to_substance_ref(&self) -> Result<&DirectedCore, SpaceErr>
Source§impl<S> ToSubstance<S> for DirectedCorewhere
Substance: ToSubstance<S>,
impl<S> ToSubstance<S> for DirectedCorewhere
Substance: ToSubstance<S>,
Source§impl TryFrom<DirectedCore> for ExtDirected
impl TryFrom<DirectedCore> for ExtDirected
Source§impl TryFrom<DirectedCore> for HttpRequest
impl TryFrom<DirectedCore> for HttpRequest
Source§impl TryFrom<Ping> for DirectedCore
impl TryFrom<Ping> for DirectedCore
Source§impl TryInto<DirectedCore> for Substance
impl TryInto<DirectedCore> for Substance
impl Eq for DirectedCore
impl StructuralPartialEq for DirectedCore
Auto Trait Implementations§
impl Freeze for DirectedCore
impl RefUnwindSafe for DirectedCore
impl Send for DirectedCore
impl Sync for DirectedCore
impl Unpin for DirectedCore
impl UnwindSafe for DirectedCore
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
Source§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
Source§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
Source§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more