Struct avro_rs::schema::Name
[−]
[src]
pub struct Name { pub name: String, pub namespace: Option<String>, pub aliases: Option<Vec<String>>, }
Represents names for record
, enum
and fixed
Avro schemas.
Each of these Schema
s have a fullname
composed of two parts:
- a name
- a namespace
aliases
can also be defined, to facilitate schema evolution.
More information about schema names can be found in the Avro specification
Fields
name: String
namespace: Option<String>
aliases: Option<Vec<String>>
Methods
impl Name
[src]
pub fn new(name: &str) -> Name
[src]
Create a new Name
.
No namespace
nor aliases
will be defined.
pub fn fullname(&self, default_namespace: Option<&str>) -> String
[src]
Return the fullname
of this Name
More information about fullnames can be found in the Avro specification
Trait Implementations
impl Clone for Name
[src]
fn clone(&self) -> Name
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Name
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more