Weave documentation
Rust referenceloom-gateway

loom-gateway · routes::repos

Source declarations, signatures and documentation for routes::repos.

Source: sigil/weave/tools/loom-gateway/src/routes/repos.rs. SHA-256: 29b09461ba6fb7919b564a4a11d88439429142b29d1e2353ad18b7d8a28fa067.

This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.

routes::repos::RepoSummary

#[derive(Serialize)]
pub struct RepoSummary {
pub name: String,
pub owner_did: String,
pub default_branch: String,
pub description: Option<String>,
pub repo_id: String,
pub registered_ms: u64,
pub updated_ms: u64
}

Source line: 12.

routes::repos::ReposEnvelope

#[derive(Serialize)]
pub struct ReposEnvelope {
pub items: Vec<RepoSummary>,
pub total: usize
}

Source line: 37.

routes::repos::RepoDetail

#[derive(Serialize)]
pub struct RepoDetail {
pub version: u32,
pub name: String,
pub description: Option<String>,
pub default_branch: String,
pub bundle: loom_hub::ShareBundle,
pub registered_ms: u64,
pub updated_ms: u64
}

Source line: 43.

routes::repos::list

GET /api/v1/repos — every registry entry on this node.

pub async fn list(State(state): State<AppState>) -> Result<Json<ReposEnvelope>, ApiError>;

Source line: 68.

routes::repos::detail

GET /api/v1/repos/:name — full registry entry.

pub async fn detail(
    State(state): State<AppState>,
    Path(name): Path<String>,
) -> Result<Json<RepoDetail>, ApiError>;

Source line: 78.

On this page