/// Create a fsys::OfferRunnerDecl offering the given cap from the parent to the given child
/// collection.
Create a fsys::OfferRunnerDecl offering the given cap from the parent to the given child
collection.
Create a fsys :: OfferRunnerDecl offering the given cap from the parent to the given child collection .
pub fn offer_runner_cap_to_collection(runner_cap: &str, child: &str) -> cm_rust::OfferDecl {
    cm_rust::OfferDecl::Runner(cm_rust::OfferRunnerDecl {
        source: cm_rust::OfferSource::Parent,
        source_name: runner_cap.into(),
        target: cm_rust::OfferTarget::Collection(child.to_string()),
        target_name: runner_cap.into(),
    })
}
pub fn offer_runner_cap_to_collection ( runner_cap : & str , child : & str ) -> cm_rust :: OfferDecl { cm_rust :: OfferDecl :: Runner ( cm_rust :: OfferRunnerDecl { source : cm_rust :: OfferSource :: Parent , source_name : runner_cap . into ( ) , target : cm_rust :: OfferTarget :: Collection ( child . to_string ( ) ) , target_name : runner_cap . into ( ) , } ) }
Create a fsys::OfferRunnerDecl offering the given cap from the parent to the given child
collection.
Create a fsys :: OfferRunnerDecl offering the given cap from the parent to the given child collection .
runner_cap
&str
child
&str