Struct power_protobuf_lib::Method
source · pub struct Method {
pub name: Ident,
pub method_name: Ident,
pub input_message: Option<Message>,
pub input_type: Type,
pub output_message: Option<Message>,
pub output_type: Type,
pub client_streaming: Option<Span>,
pub server_streaming: Option<Span>,
pub options: Punctuated<ProtobufOption, Semi>,
}
Expand description
Service method
Fields§
§name: Ident
Method name
method_name: Ident
§input_message: Option<Message>
§input_type: Type
Input type
output_message: Option<Message>
§output_type: Type
Output type
client_streaming: Option<Span>
If this method is client streaming
server_streaming: Option<Span>
If this method is server streaming
options: Punctuated<ProtobufOption, Semi>
Method options
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Method
impl RefUnwindSafe for Method
impl !Send for Method
impl !Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
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