Struct protobuf::descriptor::ServiceDescriptorProto[][src]

pub struct ServiceDescriptorProto {
    pub method: RepeatedField<MethodDescriptorProto>,
    pub options: SingularPtrField<ServiceOptions>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
    // some fields omitted
}

Fields

method: RepeatedField<MethodDescriptorProto>options: SingularPtrField<ServiceOptions>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl ServiceDescriptorProto[src]

pub fn new() -> ServiceDescriptorProto[src]

pub fn get_name(&self) -> &str[src]

pub fn clear_name(&mut self)[src]

pub fn has_name(&self) -> bool[src]

pub fn set_name(&mut self, v: String)[src]

pub fn mut_name(&mut self) -> &mut String[src]

pub fn take_name(&mut self) -> String[src]

pub fn get_method(&self) -> &[MethodDescriptorProto]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

pub fn clear_method(&mut self)[src]

pub fn set_method(&mut self, v: RepeatedField<MethodDescriptorProto>)[src]

pub fn mut_method(&mut self) -> &mut RepeatedField<MethodDescriptorProto>[src]

pub fn take_method(&mut self) -> RepeatedField<MethodDescriptorProto>[src]

pub fn get_options(&self) -> &ServiceOptions[src]

pub fn clear_options(&mut self)[src]

pub fn has_options(&self) -> bool[src]

pub fn set_options(&mut self, v: ServiceOptions)[src]

pub fn mut_options(&mut self) -> &mut ServiceOptions[src]

pub fn take_options(&mut self) -> ServiceOptions[src]

Trait Implementations

impl Clear for ServiceDescriptorProto[src]

impl Clone for ServiceDescriptorProto[src]

impl Debug for ServiceDescriptorProto[src]

impl Default for ServiceDescriptorProto[src]

impl<'a> Default for &'a ServiceDescriptorProto[src]

impl<'de> Deserialize<'de> for ServiceDescriptorProto[src]

impl Message for ServiceDescriptorProto[src]

impl PartialEq<ServiceDescriptorProto> for ServiceDescriptorProto[src]

impl ProtobufValue for ServiceDescriptorProto[src]

impl Serialize for ServiceDescriptorProto[src]

impl StructuralPartialEq for ServiceDescriptorProto[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.