pub enum GetReferenceResponse {
Exact(Reference),
StartWith(Vec<Reference>),
}Expand description
The response for getting a git reference
Variants§
Exact(Reference)
The reference data matching the specified reference
StartWith(Vec<Reference>)
If the reference doesn’t exist in the repository but existing refs start with ref they will be returned as an array. For example, a call to get the data for a branch named feature, which doesn’t exist, would return head refs including featureA and featureB which do.
Trait Implementations§
Source§impl Debug for GetReferenceResponse
impl Debug for GetReferenceResponse
Source§impl<'de> Deserialize<'de> for GetReferenceResponse
impl<'de> Deserialize<'de> for GetReferenceResponse
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 PartialEq for GetReferenceResponse
impl PartialEq for GetReferenceResponse
impl StructuralPartialEq for GetReferenceResponse
Auto Trait Implementations§
impl Freeze for GetReferenceResponse
impl RefUnwindSafe for GetReferenceResponse
impl Send for GetReferenceResponse
impl Sync for GetReferenceResponse
impl Unpin for GetReferenceResponse
impl UnwindSafe for GetReferenceResponse
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