Weave documentation
Rust referenceloom-gateway

loom-gateway · routes::clone

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

Source: sigil/weave/tools/loom-gateway/src/routes/clone.rs. SHA-256: f7baef789e4c0517bdebf82736b50ac3cc4361329320f5c950243538bc82b59e.

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::clone::CloneRequest

#[derive(Debug, Deserialize)]
#[allow(dead_code)]
pub struct CloneRequest {
pub source: String,
pub name: String,
#[serde(default)]
pub workspaces_dir: Option<String>,
#[serde(default)]
pub description: Option<String>
}

Source line: 17.

routes::clone::CloneResponse

#[derive(Debug, Serialize)]
pub struct CloneResponse {
pub name: String,
pub workdir: String,
pub source: String,
pub commits_imported: Option<u32>,
pub blobs_imported: Option<u32>,
pub elapsed_ms: u64
}

Source line: 27.

routes::clone::create

Network Git cloning is disabled at the HTTP boundary.

This route remains present so older clients receive one stable, authenticated error instead of probing another transport fallback.

pub async fn create(
    State(_state): State<AppState>,
    Json(_request): Json<CloneRequest>,
) -> Result<Json<CloneResponse>, ApiError>;

Source line: 40.

On this page