pub struct CreateFileParams {
pub branch: Option<String>,
pub content: Option<String>,
pub from_path: Option<String>,
pub message: Option<String>,
pub new_branch: Option<String>,
pub sha: Option<String>,
pub signoff: Option<bool>,
}Fields§
§branch: Option<String>ветка на которой будет базировать коммит, если пустая то будет использована ветка по умолчанию
content: Option<String>content must be base64 encoded
from_path: Option<String>SHA string json:"sha" binding:"Required"
message: Option<String>Сообщение для описания коммита, если пустое то будет использовано сообщение по умолчанию
new_branch: Option<String>новая ветка которая будет отведена от указанной выше ветки и вней будет создан новый коммит
sha: Option<String>sha is the SHA for the file that already exists
signoff: Option<bool>Подписывать ли коммит
Trait Implementations§
Source§impl Clone for CreateFileParams
impl Clone for CreateFileParams
Source§fn clone(&self) -> CreateFileParams
fn clone(&self) -> CreateFileParams
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 CreateFileParams
impl Debug for CreateFileParams
Source§impl<'de> Deserialize<'de> for CreateFileParams
impl<'de> Deserialize<'de> for CreateFileParams
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
Auto Trait Implementations§
impl Freeze for CreateFileParams
impl RefUnwindSafe for CreateFileParams
impl Send for CreateFileParams
impl Sync for CreateFileParams
impl Unpin for CreateFileParams
impl UnsafeUnpin for CreateFileParams
impl UnwindSafe for CreateFileParams
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