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§
Sourcefn url(
project_id: i64,
api_url: &str,
remote: &Remote,
ref_name: Option<&str>,
page: i32,
) -> String
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.
Sourcefn buffer_size() -> usize
fn buffer_size() -> usize
Returns the request buffer size.
Sourcefn early_exit(&self) -> bool
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§
impl RemoteEntry for BitbucketPagination<BitbucketCommit>
Available on crate feature
bitbucket
only.impl RemoteEntry for BitbucketPagination<BitbucketPullRequest>
Available on crate feature
bitbucket
only.impl RemoteEntry for GiteaCommit
Available on crate feature
gitea
only.impl RemoteEntry for GiteaPullRequest
Available on crate feature
gitea
only.impl RemoteEntry for GitHubCommit
Available on crate feature
github
only.impl RemoteEntry for GitHubPullRequest
Available on crate feature
github
only.impl RemoteEntry for GitLabCommit
Available on crate feature
gitlab
only.impl RemoteEntry for GitLabMergeRequest
Available on crate feature
gitlab
only.impl RemoteEntry for GitLabProject
Available on crate feature
gitlab
only.