[][src]Struct protofish::context::Service

pub struct Service {
    pub name: String,
    pub full_name: String,
    pub rpcs: Vec<Rpc>,
    pub options: Vec<ProtoOption>,
    // some fields omitted
}

Service details

Fields

name: String

Service name.

full_name: String

Full service name, including the package name.

rpcs: Vec<Rpc>

List of rpc operations defined in the service.

options: Vec<ProtoOption>

Options.

Implementations

impl Service[src]

pub fn rpc_by_name(&self, name: &str) -> Option<&Rpc>[src]

Gets an Rpc info by operation name.

Trait Implementations

impl Debug for Service[src]

impl PartialEq<Service> for Service[src]

impl StructuralPartialEq for Service[src]

Auto Trait Implementations

impl RefUnwindSafe for Service

impl Send for Service

impl Sync for Service

impl Unpin for Service

impl UnwindSafe for Service

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> From<T> for T[src]

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

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.