Struct protobuf::well_known_types::SourceContext[][src]

pub struct SourceContext {
    pub file_name: String,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

file_name: Stringunknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl SourceContext[src]

pub fn new() -> SourceContext[src]

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

pub fn clear_file_name(&mut self)[src]

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

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

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

Trait Implementations

impl Clear for SourceContext[src]

impl Clone for SourceContext[src]

impl Debug for SourceContext[src]

impl Default for SourceContext[src]

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

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

impl Message for SourceContext[src]

impl PartialEq<SourceContext> for SourceContext[src]

impl ProtobufValue for SourceContext[src]

impl Serialize 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> 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.