pub struct RequestType {
pub name: String,
pub topic_name: String,
pub layout: ServiceLayout,
pub method: Option<String>,
pub members: Vec<StructMember>,
}Expand description
Request wire data model.
- Basic layout: one RequestType per service, with
header+unionmember over all methods. - Enhanced layout: one RequestType per method, with
header+ typed per-method fields.
Fields§
§name: StringComplete struct name (e.g. Calculator_Request or
Calculator_add_Request).
topic_name: StringTopic name of this request wire structure.
layout: ServiceLayoutLayout variant from which the struct was produced.
method: Option<String>Method name for enhanced; None for basic.
members: Vec<StructMember>Member list (header + body).
Trait Implementations§
Source§impl Clone for RequestType
impl Clone for RequestType
Source§fn clone(&self) -> RequestType
fn clone(&self) -> RequestType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RequestType
impl Debug for RequestType
Source§impl PartialEq for RequestType
impl PartialEq for RequestType
Source§fn eq(&self, other: &RequestType) -> bool
fn eq(&self, other: &RequestType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RequestType
Auto Trait Implementations§
impl Freeze for RequestType
impl RefUnwindSafe for RequestType
impl Send for RequestType
impl Sync for RequestType
impl Unpin for RequestType
impl UnsafeUnpin for RequestType
impl UnwindSafe for RequestType
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