pub struct PushRejection {
pub remote: String,
pub branch: String,
pub reason: PushRejectReason,
pub detail: Option<Box<ErrorDetail>>,
}Expand description
A push the remote rejected, typed so a frontend can offer “pull first / force push / cancel” instead of printing git’s stderr.
Fields§
§remote: String§branch: String§reason: PushRejectReason§detail: Option<Box<ErrorDetail>>The command and its stderr, for the activity log. Absent on the wire from a peer that predates it.
Trait Implementations§
Source§impl Clone for PushRejection
impl Clone for PushRejection
Source§impl Debug for PushRejection
impl Debug for PushRejection
Source§impl<'de> Deserialize<'de> for PushRejection
impl<'de> Deserialize<'de> for PushRejection
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 PushRejection
Source§impl PartialEq for PushRejection
impl PartialEq for PushRejection
Source§impl Serialize for PushRejection
impl Serialize for PushRejection
impl StructuralPartialEq for PushRejection
Auto Trait Implementations§
impl Forget for PushRejection
impl Freeze for PushRejection
impl Move for PushRejection
impl RefUnwindSafe for PushRejection
impl Send for PushRejection
impl Sync for PushRejection
impl Unpin for PushRejection
impl UnsafeUnpin for PushRejection
impl UnwindSafe for PushRejection
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