pub enum MaybeProtobuf<T>where
T: Message,{
Some(ProtobufResponse<T>),
None,
}Expand description
Protobuf response with optional body
Variants§
Trait Implementations§
Source§impl<T> IntoResponse for MaybeProtobuf<T>where
T: Message,
impl<T> IntoResponse for MaybeProtobuf<T>where
T: Message,
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl<T> Freeze for MaybeProtobuf<T>where
T: Freeze,
impl<T> RefUnwindSafe for MaybeProtobuf<T>where
T: RefUnwindSafe,
impl<T> Send for MaybeProtobuf<T>
impl<T> Sync for MaybeProtobuf<T>
impl<T> Unpin for MaybeProtobuf<T>where
T: Unpin,
impl<T> UnwindSafe for MaybeProtobuf<T>where
T: UnwindSafe,
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