pub struct RefsJson {
pub branches: Option<Vec<RefJson>>,
pub default: Option<String>,
pub tags: Option<Vec<RefJson>>,
}Fields§
§branches: Option<Vec<RefJson>>Branches are the repo’s heads; empty on a repo with no commits.
default: Option<String>Default is the branch name a caller gets when it asks for no ref.
Tags are the repo’s tags; empty when there are none.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RefsJson
impl<'de> Deserialize<'de> for RefsJson
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
impl StructuralPartialEq for RefsJson
Auto Trait Implementations§
impl Freeze for RefsJson
impl RefUnwindSafe for RefsJson
impl Send for RefsJson
impl Sync for RefsJson
impl Unpin for RefsJson
impl UnsafeUnpin for RefsJson
impl UnwindSafe for RefsJson
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