Struct cosmic_space::wave::ReflectedProto
source · pub struct ReflectedProto {
pub id: WaveId,
pub intended: Option<Recipients>,
pub from: Option<Surface>,
pub to: Option<Surface>,
pub body: Option<Substance>,
pub status: Option<StatusCode>,
pub handling: Option<Handling>,
pub scope: Option<Scope>,
pub agent: Option<Agent>,
pub reflection_of: Option<WaveId>,
pub kind: Option<ReflectedKind>,
pub track: bool,
}Fields
id: WaveIdintended: Option<Recipients>from: Option<Surface>to: Option<Surface>body: Option<Substance>status: Option<StatusCode>handling: Option<Handling>scope: Option<Scope>agent: Option<Agent>reflection_of: Option<WaveId>kind: Option<ReflectedKind>track: boolImplementations
sourceimpl ReflectedProto
impl ReflectedProto
pub fn new() -> Self
pub fn kind(&mut self, kind: ReflectedKind)
pub fn fill<V>(&mut self, wave: &Wave<V>)
pub fn fill_kind(&mut self, kind: ReflectedKind)
pub fn fill_intended<I: ToRecipients + Clone>(&mut self, intended: I)
pub fn fill_to(&mut self, to: &Surface)
pub fn fill_from(&mut self, from: &Surface)
pub fn fill_scope(&mut self, scope: &Scope)
pub fn fill_agent(&mut self, agent: &Agent)
pub fn fill_handling(&mut self, handling: &Handling)
pub fn fill_status(&mut self, status: &StatusCode)
pub fn body(&mut self, body: Substance) -> Result<(), SpaceErr>
pub fn intended<I: ToRecipients + Clone>(&mut self, intended: I)
pub fn reflection_of(&mut self, id: WaveId)
pub fn status(&mut self, status: u16)
pub fn to(&mut self, to: Surface)
pub fn scope(&mut self, scope: Scope)
pub fn agent(&mut self, agent: Agent)
pub fn handling(&mut self, handling: Handling)
pub fn from(&mut self, from: Surface)
pub fn build(self) -> Result<ReflectedWave, SpaceErr>
Trait Implementations
sourceimpl Clone for ReflectedProto
impl Clone for ReflectedProto
sourcefn clone(&self) -> ReflectedProto
fn clone(&self) -> ReflectedProto
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 moreAuto Trait Implementations
impl RefUnwindSafe for ReflectedProto
impl Send for ReflectedProto
impl Sync for ReflectedProto
impl Unpin for ReflectedProto
impl UnwindSafe for ReflectedProto
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