Rust

adapter

Module

The adapter contract every provider implements.

Contents

1 submodule, and what the module defines itself.

use utopia_vcs::CheckRun;
Rust
pub struct CheckRun

A check run to create or update: the parameters of createCheckRun() and updateCheckRun() after the repository and commit (or run id).

use utopia_vcs::VcsType;
Rust
pub enum VcsType

The kind of version control system an adapter speaks.

use utopia_vcs::WebhookId;
Rust
pub enum WebhookId

The identifier a provider gives a webhook: a number, or a UUID string (Bitbucket).

use utopia_vcs::WebhookScope;
Rust
pub enum WebhookScope

Where a provider delivers webhooks from.

use utopia_vcs::Adapter;
Rust
pub trait Adapter: Send + Sync

A version control system provider.

use utopia_vcs::Git;
Rust
pub trait Git: Adapter

A Git provider: content writes, webhooks, capabilities and statuses on top of the Adapter contract.

adapter::clone_type

Own page

How a clone command checks out its version.

Rust
pub const BRANCH: &str = "branch"

A branch (created locally when the remote has none of that name).

Rust
pub const COMMIT: &str = "commit"

A commit hash.

Rust
pub const TAG: &str = "tag"

A tag, or a glob matching tags (the last one git ls-remote lists).