pub struct Alias(/* private fields */);Expand description
Newtype pattern for Name to better control the serde_json::Value representation.
Aliases are serialized as an array of plain strings in the JSON representation.
Implementations§
Source§impl Alias
impl Alias
pub fn new(name: &str) -> AvroResult<Self>
pub fn name(&self) -> &str
pub fn namespace(&self) -> NamespaceRef<'_>
pub fn fullname(&self, enclosing_namespace: NamespaceRef<'_>) -> String
pub fn fully_qualified_name( &self, default_namespace: NamespaceRef<'_>, ) -> Cow<'_, Name>
Trait Implementations§
impl Eq for Alias
impl StructuralPartialEq for Alias
Auto Trait Implementations§
impl Freeze for Alias
impl RefUnwindSafe for Alias
impl Send for Alias
impl Sync for Alias
impl Unpin for Alias
impl UnwindSafe for Alias
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