pub struct ApplicationDependency { /* private fields */ }Expand description
Dependency on another application contract.
Implementations§
Source§impl ApplicationDependency
impl ApplicationDependency
Sourcepub fn new(
application_id: ApplicationId,
version_requirement: impl Into<String>,
optional: bool,
) -> ContractResult<Self>
pub fn new( application_id: ApplicationId, version_requirement: impl Into<String>, optional: bool, ) -> ContractResult<Self>
Creates an application dependency.
Sourcepub fn application_id(&self) -> &ApplicationId
pub fn application_id(&self) -> &ApplicationId
Returns the depended-on application.
Sourcepub fn version_requirement(&self) -> &str
pub fn version_requirement(&self) -> &str
Returns the version requirement expression.
Sourcepub fn is_optional(&self) -> bool
pub fn is_optional(&self) -> bool
Reports whether the dependency is optional.
Trait Implementations§
Source§impl Clone for ApplicationDependency
impl Clone for ApplicationDependency
Source§fn clone(&self) -> ApplicationDependency
fn clone(&self) -> ApplicationDependency
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 moreSource§impl Debug for ApplicationDependency
impl Debug for ApplicationDependency
Source§impl<'de> Deserialize<'de> for ApplicationDependency
impl<'de> Deserialize<'de> for ApplicationDependency
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ApplicationDependency
Source§impl PartialEq for ApplicationDependency
impl PartialEq for ApplicationDependency
Source§impl Serialize for ApplicationDependency
impl Serialize for ApplicationDependency
impl StructuralPartialEq for ApplicationDependency
Auto Trait Implementations§
impl Freeze for ApplicationDependency
impl RefUnwindSafe for ApplicationDependency
impl Send for ApplicationDependency
impl Sync for ApplicationDependency
impl Unpin for ApplicationDependency
impl UnsafeUnpin for ApplicationDependency
impl UnwindSafe for ApplicationDependency
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