pub struct MultiName {
pub(crate) serialize: Name,
pub(crate) serialize_renamed: bool,
pub(crate) deserialize: Name,
pub(crate) deserialize_renamed: bool,
pub(crate) deserialize_aliases: BTreeSet<Name>,
}
Fields§
§serialize: Name
§serialize_renamed: bool
§deserialize: Name
§deserialize_renamed: bool
§deserialize_aliases: BTreeSet<Name>
Implementations§
source§impl MultiName
impl MultiName
pub(crate) fn from_attrs( source_name: Name, ser_name: Attr<'_, Name>, de_name: Attr<'_, Name>, de_aliases: Option<VecAttr<'_, Name>>, ) -> Self
sourcepub fn serialize_name(&self) -> &Name
pub fn serialize_name(&self) -> &Name
Return the container name for the container when serializing.
sourcepub fn deserialize_name(&self) -> &Name
pub fn deserialize_name(&self) -> &Name
Return the container name for the container when deserializing.
pub(crate) fn deserialize_aliases(&self) -> &BTreeSet<Name>
Auto Trait Implementations§
impl Freeze for MultiName
impl RefUnwindSafe for MultiName
impl !Send for MultiName
impl !Sync for MultiName
impl Unpin for MultiName
impl UnwindSafe for MultiName
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