Struct cosmic_space::wave::core::DirectedCore
source · 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
sourceimpl DirectedCore
impl DirectedCore
sourceimpl DirectedCore
impl DirectedCore
pub fn kind(&self) -> MethodKind
sourceimpl 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
sourceimpl Clone for DirectedCore
impl Clone for DirectedCore
sourcefn clone(&self) -> DirectedCore
fn clone(&self) -> DirectedCore
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DirectedCore
impl Debug for DirectedCore
sourceimpl Default for DirectedCore
impl Default for DirectedCore
sourceimpl<'de> Deserialize<'de> for DirectedCore
impl<'de> Deserialize<'de> for DirectedCore
sourcefn 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
sourceimpl From<DirectedCore> for Substance
impl From<DirectedCore> for Substance
sourcefn from(f: DirectedCore) -> Substance
fn from(f: DirectedCore) -> Substance
Converts to this type from the input type.
sourceimpl Into<DirectedCore> for Assign
impl Into<DirectedCore> for Assign
sourcefn into(self) -> DirectedCore
fn into(self) -> DirectedCore
Converts this type into the (usually inferred) input type.
sourceimpl Into<DirectedCore> for Command
impl Into<DirectedCore> for Command
sourcefn into(self) -> DirectedCore
fn into(self) -> DirectedCore
Converts this type into the (usually inferred) input type.
sourceimpl Into<DirectedCore> for Create
impl Into<DirectedCore> for Create
sourcefn into(self) -> DirectedCore
fn into(self) -> DirectedCore
Converts this type into the (usually inferred) input type.
sourceimpl Into<DirectedCore> for HttpRequest
impl Into<DirectedCore> for HttpRequest
sourcefn into(self) -> DirectedCore
fn into(self) -> DirectedCore
Converts this type into the (usually inferred) input type.
sourceimpl Into<DirectedCore> for Method
impl Into<DirectedCore> for Method
sourcefn into(self) -> DirectedCore
fn into(self) -> DirectedCore
Converts this type into the (usually inferred) input type.
sourceimpl Into<DirectedCore> for Provision
impl Into<DirectedCore> for Provision
sourcefn into(self) -> DirectedCore
fn into(self) -> DirectedCore
Converts this type into the (usually inferred) input type.
sourceimpl Into<DirectedCore> for RawCommand
impl Into<DirectedCore> for RawCommand
sourcefn into(self) -> DirectedCore
fn into(self) -> DirectedCore
Converts this type into the (usually inferred) input type.
sourceimpl PartialEq<DirectedCore> for DirectedCore
impl PartialEq<DirectedCore> for DirectedCore
sourcefn eq(&self, other: &DirectedCore) -> bool
fn eq(&self, other: &DirectedCore) -> bool
sourceimpl Serialize for DirectedCore
impl Serialize for DirectedCore
sourceimpl ToSubstance<DirectedCore> for Substance
impl ToSubstance<DirectedCore> for Substance
fn to_substance(self) -> Result<DirectedCore, SpaceErr>
fn to_substance_ref(&self) -> Result<&DirectedCore, SpaceErr>
sourceimpl<S> ToSubstance<S> for DirectedCorewhere
Substance: ToSubstance<S>,
impl<S> ToSubstance<S> for DirectedCorewhere
Substance: ToSubstance<S>,
fn to_substance(self) -> Result<S, SpaceErr>
fn to_substance_ref(&self) -> Result<&S, SpaceErr>
sourceimpl TryFrom<DirectedCore> for ExtDirected
impl TryFrom<DirectedCore> for ExtDirected
sourceimpl TryFrom<DirectedCore> for HttpRequest
impl TryFrom<DirectedCore> for HttpRequest
sourceimpl TryFrom<Ping> for DirectedCore
impl TryFrom<Ping> for DirectedCore
sourceimpl TryInto<DirectedCore> for Substance
impl TryInto<DirectedCore> for Substance
impl Eq for DirectedCore
impl StructuralEq for DirectedCore
impl StructuralPartialEq for DirectedCore
Auto Trait Implementations
impl RefUnwindSafe for DirectedCore
impl Send for DirectedCore
impl Sync for DirectedCore
impl Unpin for DirectedCore
impl UnwindSafe for DirectedCore
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
sourcefn 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
sourceimpl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
sourcefn 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