pub struct PinUpdateRequest {
pub repo: String,
pub current_commit: String,
pub new_commit: String,
pub pushed_commit_exists: bool,
}Expand description
Request to update one repos.toml commit pin.
Fields§
§repo: StringRepository whose pin is being updated.
current_commit: StringCurrently pinned commit.
new_commit: StringCommit the pin should move to.
pushed_commit_exists: boolWhether the new commit already exists on the pushed Forgejo remote.
Trait Implementations§
Source§impl Clone for PinUpdateRequest
impl Clone for PinUpdateRequest
Source§fn clone(&self) -> PinUpdateRequest
fn clone(&self) -> PinUpdateRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PinUpdateRequest
impl Debug for PinUpdateRequest
impl Eq for PinUpdateRequest
Source§impl PartialEq for PinUpdateRequest
impl PartialEq for PinUpdateRequest
Source§fn eq(&self, other: &PinUpdateRequest) -> bool
fn eq(&self, other: &PinUpdateRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PinUpdateRequest
Auto Trait Implementations§
impl Freeze for PinUpdateRequest
impl RefUnwindSafe for PinUpdateRequest
impl Send for PinUpdateRequest
impl Sync for PinUpdateRequest
impl Unpin for PinUpdateRequest
impl UnsafeUnpin for PinUpdateRequest
impl UnwindSafe for PinUpdateRequest
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