Struct abstract_core::objects::dependency::StaticDependency
source · pub struct StaticDependency {
pub id: ModuleId<'static>,
pub version_req: &'static [&'static str],
}
Expand description
Statically defined dependency used in-contract
Fields§
§id: ModuleId<'static>
§version_req: &'static [&'static str]
Implementations§
Trait Implementations§
source§impl Clone for StaticDependency
impl Clone for StaticDependency
source§fn clone(&self) -> StaticDependency
fn clone(&self) -> StaticDependency
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StaticDependency
impl Debug for StaticDependency
source§impl From<&StaticDependency> for Dependency
impl From<&StaticDependency> for Dependency
source§fn from(dep: &StaticDependency) -> Self
fn from(dep: &StaticDependency) -> Self
Converts to this type from the input type.
source§impl PartialEq for StaticDependency
impl PartialEq for StaticDependency
source§fn eq(&self, other: &StaticDependency) -> bool
fn eq(&self, other: &StaticDependency) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StaticDependency
Auto Trait Implementations§
impl RefUnwindSafe for StaticDependency
impl Send for StaticDependency
impl Sync for StaticDependency
impl Unpin for StaticDependency
impl UnwindSafe for StaticDependency
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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