[][src]Struct prost_types::SourceContext

pub struct SourceContext {
    pub file_name: String,
}

SourceContext represents information about the source of a protobuf element, like the file in which it is defined.

Fields

file_name: String

The path-qualified name of the .proto file that contained the associated protobuf element. For example: "google/protobuf/source_context.proto".

Trait Implementations

impl Clone for SourceContext[src]

impl Debug for SourceContext[src]

impl Default for SourceContext[src]

impl Message for SourceContext[src]

impl PartialEq<SourceContext> for SourceContext[src]

impl StructuralPartialEq for SourceContext[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> 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.