Rust referenceloom-gateway
loom-gateway · routes::branches
Source declarations, signatures and documentation for routes::branches.
Source: sigil/weave/tools/loom-gateway/src/routes/branches.rs. SHA-256: dbfde0cd1e9a34aabd05d78da709eec16a5fdaba40ef7f3d426b6dc560e09652.
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::branches::BranchesEnvelope
#[derive(Serialize)]
pub struct BranchesEnvelope {
pub items: Vec<BranchInfo>,
pub total: usize,
/// The repo's default branch — UI highlights this row and uses it as
/// the comparison baseline once ahead/behind counts land.
pub default_branch: String
}Source line: 11.
routes::branches::list
GET /api/v1/repos/:name/branches
pub async fn list(
State(state): State<AppState>,
Path(name): Path<String>,
) -> Result<Json<BranchesEnvelope>, ApiError>;Source line: 20.