pub struct Import {
pub path: String,
pub binding: Option<String>,
}Expand description
One use of a contract module.
Fields§
§path: StringThe module path, such as std@v1/duration or ./models.
binding: Option<String>The name it is bound to, when that is not its natural one.
Trait Implementations§
impl Eq for Import
impl StructuralPartialEq for Import
Auto Trait Implementations§
impl Forget for Import
impl Freeze for Import
impl Move for Import
impl RefUnwindSafe for Import
impl Send for Importwhere
RawVecInner: Send,
impl Sync for Importwhere
RawVecInner: Sync,
impl Unpin for Import
impl UnsafeUnpin for Import
impl UnwindSafe for Importwhere
RawVecInner: UnwindSafe,
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