pub struct OwnedRequirementSpec {
pub capability: String,
pub provider: String,
}Expand description
Owned twin of RequirementSpec for reloadable declarations.
RequirementSpec 的 owned 孪生,供可热重载声明使用。
Fields§
§capability: StringCapability name this declaration requires. 本声明所要求的能力名称。
provider: StringObject expected to provide that capability. 本应提供该能力的对象。
Trait Implementations§
Source§impl Clone for OwnedRequirementSpec
impl Clone for OwnedRequirementSpec
Source§fn clone(&self) -> OwnedRequirementSpec
fn clone(&self) -> OwnedRequirementSpec
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 OwnedRequirementSpec
impl Debug for OwnedRequirementSpec
impl Eq for OwnedRequirementSpec
Source§impl PartialEq for OwnedRequirementSpec
impl PartialEq for OwnedRequirementSpec
impl StructuralPartialEq for OwnedRequirementSpec
Auto Trait Implementations§
impl Freeze for OwnedRequirementSpec
impl RefUnwindSafe for OwnedRequirementSpec
impl Send for OwnedRequirementSpec
impl Sync for OwnedRequirementSpec
impl Unpin for OwnedRequirementSpec
impl UnsafeUnpin for OwnedRequirementSpec
impl UnwindSafe for OwnedRequirementSpec
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