Struct prost_types::Method [−][src]
Method represents a method of an API interface.
Fields
name: StringThe simple name of this method.
request_type_url: StringA URL of the input message type.
request_streaming: boolIf true, the request is streamed.
response_type_url: StringThe URL of the output message type.
response_streaming: boolIf true, the response is streamed.
options: Vec<Option>Any metadata attached to the method.
syntax: i32The source syntax of this method.
Implementations
impl Method[src][−]
pub fn syntax(&self) -> Syntax[src][−]
Returns the enum value of syntax, or the default if the field is set to an invalid enum value.
pub fn set_syntax(&mut self, value: Syntax)[src][−]
Sets syntax to the provided enum value.
Trait Implementations
impl Clone for Method[src][+]
impl Debug for Method[src][+]
impl Default for Method[src][+]
impl Message for Method[src][+]
impl PartialEq<Method> for Method[src][+]
impl StructuralPartialEq for Method[src]
Auto Trait Implementations
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src][+]
T: ?Sized,
impl<T> From<T> for T[src][+]
impl<T, U> Into<U> for T where
U: From<T>, [src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src][+]
U: TryFrom<T>,