pub enum TransportStyle {
Rest,
Rpc,
}Expand description
Wire-shape the schema generates for. Picked once per schema (via
the top-level transport rest|rpc directive) so generated servers
and clients only carry one binding’s worth of surface.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for TransportStyle
impl Clone for TransportStyle
Source§fn clone(&self) -> TransportStyle
fn clone(&self) -> TransportStyle
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 TransportStyle
impl Debug for TransportStyle
Source§impl Default for TransportStyle
impl Default for TransportStyle
Source§fn default() -> TransportStyle
fn default() -> TransportStyle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TransportStyle
impl<'de> Deserialize<'de> for TransportStyle
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 PartialEq for TransportStyle
impl PartialEq for TransportStyle
Source§impl Serialize for TransportStyle
impl Serialize for TransportStyle
impl Copy for TransportStyle
impl Eq for TransportStyle
impl StructuralPartialEq for TransportStyle
Auto Trait Implementations§
impl Freeze for TransportStyle
impl RefUnwindSafe for TransportStyle
impl Send for TransportStyle
impl Sync for TransportStyle
impl Unpin for TransportStyle
impl UnsafeUnpin for TransportStyle
impl UnwindSafe for TransportStyle
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