Skip to main content

Provider

Trait Provider 

Source
pub trait Provider: Send + Sync {
    type User: User;
    type Org: Org;
    type Repo: Repo;
    type Commit: Commit;
    type Issue: Issue;
    type Release: Release;

    // Required methods
    fn user(&self) -> Self::User;
    fn org(&self) -> Self::Org;
    fn repo(&self) -> Self::Repo;
    fn commit(&self) -> Self::Commit;
    fn issue(&self) -> Self::Issue;
    fn release(&self) -> Self::Release;
}

Required Associated Types§

Required Methods§

Source

fn user(&self) -> Self::User

Source

fn org(&self) -> Self::Org

Source

fn repo(&self) -> Self::Repo

Source

fn commit(&self) -> Self::Commit

Source

fn issue(&self) -> Self::Issue

Source

fn release(&self) -> Self::Release

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Provider for GitCodeClient

Source§

type User = GitCodeUser

Source§

type Org = GitCodeOrg

Source§

type Repo = GitCodeRepo

Source§

type Commit = GitCodeCommit

Source§

type Issue = GitCodeIssue

Source§

type Release = GitCodeRelease