pub enum ApiOperation {
MergeRequest,
Pipeline,
Project,
ContainerRegistry,
Release,
SinglePage,
Gist,
RepositoryTag,
}
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§
Implementations§
Source§impl ApiOperation
impl ApiOperation
pub fn iter() -> ApiOperationIterator ⓘ
Trait Implementations§
Source§impl Clone for ApiOperation
impl Clone for ApiOperation
Source§fn clone(&self) -> ApiOperation
fn clone(&self) -> ApiOperation
Returns a duplicate 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<'de> Deserialize<'de> for ApiOperation
impl<'de> Deserialize<'de> for ApiOperation
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ApiOperation
impl Display for ApiOperation
Source§impl FromStr for ApiOperation
impl FromStr for ApiOperation
Source§impl Hash for ApiOperation
impl Hash for ApiOperation
Source§impl PartialEq for ApiOperation
impl PartialEq for ApiOperation
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