pub struct PushReq {
pub branch: Option<String>,
pub files: Option<Vec<PushFile>>,
pub message: Option<String>,
pub name: Option<String>,
}Fields§
§branch: Option<String>Branch to advance; empty means "main". A fresh branch that is the repo’s first also becomes HEAD.
files: Option<Vec<PushFile>>Files are added to or overwritten on the branch tip — files already there and not listed SURVIVE. At least one, at most 5000, 32 MiB each.
message: Option<String>Message is the commit message; empty gets a generated one.
name: Option<String>Name is the repo to push into, from the :name path segment. It is CREATED on first push if it does not exist.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PushReq
impl<'de> Deserialize<'de> for PushReq
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 PushReq
Auto Trait Implementations§
impl Freeze for PushReq
impl RefUnwindSafe for PushReq
impl Send for PushReq
impl Sync for PushReq
impl Unpin for PushReq
impl UnsafeUnpin for PushReq
impl UnwindSafe for PushReq
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