You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: admin.rs
    path of file: ./repos/grafbase/cli/crates/federated-dev/src/dev
    
    the code of the file until where you have to start completion: mod types;

pub(crate) use self::types::{Header, PublishSubgraphInput};
use super::bus::AdminBus;
pub(crate) struct MutationRoot;

use async_graphql::{Context, Error, Objec
    
    pub(crate) async fn publish_subgraph(&self, ctx: &Context<'_>, input: PublishSubgraphInput) -> Result<bool, Error> {
        log::trace!("publishing a new subgraph");

        let bus = ctx.data::<AdminBus>().expect("must be a bus");
        let schema = bus
            .introspect_schema(&input.name, input.url.clone(), input.headers.clone())
            .await?;

        bus.compose_graph(input.name, input.url, input.headers, schema).await?;

        Ok(true)
    }