pub struct ExportName {
pub name: String,
pub alias: Option<String>,
}Expand description
A single name in an export specifier list.
Fields§
§name: StringThe local name being exported (e.g. foo in export { foo }).
alias: Option<String>Exported alias, if any (e.g. bar in export { foo as bar }).
Implementations§
Trait Implementations§
Source§impl Clone for ExportName
impl Clone for ExportName
Source§fn clone(&self) -> ExportName
fn clone(&self) -> ExportName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExportName
impl Debug for ExportName
Source§impl<'de> Deserialize<'de> for ExportName
impl<'de> Deserialize<'de> for ExportName
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExportName
impl PartialEq for ExportName
Source§fn eq(&self, other: &ExportName) -> bool
fn eq(&self, other: &ExportName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExportName
impl Serialize for ExportName
impl StructuralPartialEq for ExportName
Auto Trait Implementations§
impl Freeze for ExportName
impl RefUnwindSafe for ExportName
impl Send for ExportName
impl Sync for ExportName
impl Unpin for ExportName
impl UnsafeUnpin for ExportName
impl UnwindSafe for ExportName
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request