pub enum BorrowedSource {
Enum {
source: String,
},
Oneof {
message: String,
name: String,
},
}Expand description
Authoritative cases for a borrowed adapter.
Variants§
Enum
All nonzero values of a descriptor enum.
Oneof
Every alternative of an explicit oneof. Its entire message must consist of that oneof, so unrelated wire fields cannot silently disappear.
Trait Implementations§
Source§impl Clone for BorrowedSource
impl Clone for BorrowedSource
Source§impl Debug for BorrowedSource
impl Debug for BorrowedSource
Source§impl<'de> Deserialize<'de> for BorrowedSource
impl<'de> Deserialize<'de> for BorrowedSource
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<&NativeBorrowedSource> for BorrowedSource
impl TryFrom<&NativeBorrowedSource> for BorrowedSource
Source§type Error = AdapterError
type Error = AdapterError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for BorrowedSource
impl Freeze for BorrowedSource
impl Move for BorrowedSource
impl RefUnwindSafe for BorrowedSource
impl Send for BorrowedSource
impl Sync for BorrowedSource
impl Unpin for BorrowedSource
impl UnsafeUnpin for BorrowedSource
impl UnwindSafe for BorrowedSource
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