Trait RemoteEntry

Source
pub trait RemoteEntry {
    // Required methods
    fn url(
        project_id: i64,
        api_url: &str,
        remote: &Remote,
        ref_name: Option<&str>,
        page: i32,
    ) -> String;
    fn buffer_size() -> usize;
    fn early_exit(&self) -> bool;
}
Available on crate feature remote only.
Expand description

Trait for handling the different entries returned from the remote.

Required Methods§

Source

fn url( project_id: i64, api_url: &str, remote: &Remote, ref_name: Option<&str>, page: i32, ) -> String

Returns the API URL for fetching the entries at the specified page.

Source

fn buffer_size() -> usize

Returns the request buffer size.

Source

fn early_exit(&self) -> bool

Whether if exit early.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl RemoteEntry for BitbucketPagination<BitbucketCommit>

Available on crate feature bitbucket only.
Source§

impl RemoteEntry for BitbucketPagination<BitbucketPullRequest>

Available on crate feature bitbucket only.
Source§

impl RemoteEntry for GiteaCommit

Available on crate feature gitea only.
Source§

impl RemoteEntry for GiteaPullRequest

Available on crate feature gitea only.
Source§

impl RemoteEntry for GitHubCommit

Available on crate feature github only.
Source§

impl RemoteEntry for GitHubPullRequest

Available on crate feature github only.
Source§

impl RemoteEntry for GitLabCommit

Available on crate feature gitlab only.
Source§

impl RemoteEntry for GitLabMergeRequest

Available on crate feature gitlab only.
Source§

impl RemoteEntry for GitLabProject

Available on crate feature gitlab only.