pub struct ReservedTypeName {
pub name: &'static str,
pub description: &'static str,
}Expand description
A fixed type name the generator emits at the crate root for a given target, which a component-schema model must not collide with.
Fields§
§name: &'static strThe reserved Rust identifier (for example Api).
description: &'static strHuman-readable description of what emits it (for example server interface trait), used in the collision error.
Trait Implementations§
Source§impl Clone for ReservedTypeName
impl Clone for ReservedTypeName
Source§fn clone(&self) -> ReservedTypeName
fn clone(&self) -> ReservedTypeName
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 moreimpl Copy for ReservedTypeName
Auto Trait Implementations§
impl Freeze for ReservedTypeName
impl RefUnwindSafe for ReservedTypeName
impl Send for ReservedTypeName
impl Sync for ReservedTypeName
impl Unpin for ReservedTypeName
impl UnsafeUnpin for ReservedTypeName
impl UnwindSafe for ReservedTypeName
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