pub struct AliasPattern {
pub phrase: Option<String>,
pub variable: Option<String>,
pub type_: Option<Type>,
}
Expand description
The type of the pattern for an alias path.
Fields§
§phrase: Option<String>
The alias pattern phrase.
variable: Option<String>
The alias pattern variable.
type_: Option<Type>
The type of alias pattern
Implementations§
source§impl AliasPattern
impl AliasPattern
Trait Implementations§
source§impl Clone for AliasPattern
impl Clone for AliasPattern
source§fn clone(&self) -> AliasPattern
fn clone(&self) -> AliasPattern
Returns a copy of the value. Read more
1.0.0 · 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 AliasPattern
impl Debug for AliasPattern
source§impl Default for AliasPattern
impl Default for AliasPattern
source§fn default() -> AliasPattern
fn default() -> AliasPattern
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AliasPattern
impl<'de> Deserialize<'de> for AliasPattern
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<AliasPattern> for AliasPattern
impl PartialEq<AliasPattern> for AliasPattern
source§fn eq(&self, other: &AliasPattern) -> bool
fn eq(&self, other: &AliasPattern) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.