pub struct NoteAddPlan {
pub object: ObjectId,
pub outcome: NoteAddOutcome,
pub notes_ref_tip_before: Option<ObjectId>,
pub notes_ref_tip_after: ObjectId,
pub note_blob: ObjectId,
}Expand description
Preview of RepositoryNotes::add without writing objects, refs, or reflogs.
Fields§
§object: ObjectIdAnnotated object the note would attach to.
outcome: NoteAddOutcomeWhether the note would be newly added or would replace an existing note.
notes_ref_tip_before: Option<ObjectId>Notes ref tip before the operation (None when the ref did not exist).
notes_ref_tip_after: ObjectIdPredicted notes ref tip after the operation.
note_blob: ObjectIdBlob id that would store the note bytes.
Trait Implementations§
Source§impl Clone for NoteAddPlan
impl Clone for NoteAddPlan
Source§impl Debug for NoteAddPlan
impl Debug for NoteAddPlan
impl Eq for NoteAddPlan
Source§impl PartialEq for NoteAddPlan
impl PartialEq for NoteAddPlan
impl StructuralPartialEq for NoteAddPlan
Auto Trait Implementations§
impl Freeze for NoteAddPlan
impl RefUnwindSafe for NoteAddPlan
impl Send for NoteAddPlan
impl Sync for NoteAddPlan
impl Unpin for NoteAddPlan
impl UnsafeUnpin for NoteAddPlan
impl UnwindSafe for NoteAddPlan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.