pub struct AddNameV0 {
pub name: String,
pub item: RepoNamedItem,
pub metadata: Vec<u8>,
}
Expand description
Add a new name in the repo that can point to a branch or a commit
Or change the value of a name DEPS: if it is a change of value: all the previous AddName commits seen for this name
Fields§
§name: String
the name. in case of conflict, the smallest Id is taken.
item: RepoNamedItem
A branch or commit
metadata: Vec<u8>
Metadata
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AddNameV0
impl<'de> Deserialize<'de> for AddNameV0
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 Eq for AddNameV0
impl StructuralPartialEq for AddNameV0
Auto Trait Implementations§
impl Freeze for AddNameV0
impl RefUnwindSafe for AddNameV0
impl Send for AddNameV0
impl Sync for AddNameV0
impl Unpin for AddNameV0
impl UnwindSafe for AddNameV0
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