pub struct WireEnum {
pub source: String,
pub rust_type: String,
}Expand description
Descriptor enum and its already-generated Rust wire type.
Fields§
§source: StringFully-qualified descriptor name, including its leading dot.
rust_type: StringRust path to the corresponding wire enum.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WireEnum
impl<'de> Deserialize<'de> for WireEnum
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 TryFrom<&NativeWireEnum> for WireEnum
impl TryFrom<&NativeWireEnum> for WireEnum
Source§type Error = AdapterError
type Error = AdapterError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for WireEnum
impl Freeze for WireEnum
impl Move for WireEnum
impl RefUnwindSafe for WireEnum
impl Send for WireEnum
impl Sync for WireEnum
impl Unpin for WireEnum
impl UnsafeUnpin for WireEnum
impl UnwindSafe for WireEnum
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