Enum gr::api_traits::ApiOperation
source · pub enum ApiOperation {
MergeRequest,
Pipeline,
Project,
ContainerRegistry,
Release,
SinglePage,
Gist,
}
Expand description
Types of API resources attached to a request. The request will carry this information so we can decide if we need to use the cache or not based on global configuration. This is for read requests only, so that would be list merge_requests, list pipelines, get one merge request information, etc…
Variants§
Trait Implementations§
source§impl Clone for ApiOperation
impl Clone for ApiOperation
source§fn clone(&self) -> ApiOperation
fn clone(&self) -> ApiOperation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ApiOperation
impl Debug for ApiOperation
source§impl Display for ApiOperation
impl Display for ApiOperation
source§impl Hash for ApiOperation
impl Hash for ApiOperation
source§impl PartialEq for ApiOperation
impl PartialEq for ApiOperation
source§fn eq(&self, other: &ApiOperation) -> bool
fn eq(&self, other: &ApiOperation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ApiOperation
impl StructuralPartialEq for ApiOperation
Auto Trait Implementations§
impl Freeze for ApiOperation
impl RefUnwindSafe for ApiOperation
impl Send for ApiOperation
impl Sync for ApiOperation
impl Unpin for ApiOperation
impl UnwindSafe for ApiOperation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more