pub struct CreateFileRepoBuilder { /* private fields */ }
Implementations§
Source§impl CreateFileRepoBuilder
impl CreateFileRepoBuilder
Identity for a person’s identity like an author or committer.
Sourcepub fn branch(self, branch: impl Into<String>) -> Self
pub fn branch(self, branch: impl Into<String>) -> Self
Branch (optional) to base this file from. if not given, the default branch is used.
pub fn committer(self, committer: impl Into<Identity>) -> Self
Sourcepub fn dates(self, dates: impl Into<CommitDateOptions>) -> Self
pub fn dates(self, dates: impl Into<CommitDateOptions>) -> Self
CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE
Sourcepub fn message(self, message: impl Into<String>) -> Self
pub fn message(self, message: impl Into<String>) -> Self
Message (optional) for the commit of this file. if not supplied, a default message will be used
Sourcepub fn new_branch(self, new_branch: impl Into<String>) -> Self
pub fn new_branch(self, new_branch: impl Into<String>) -> Self
new_branch (optional) will make a new branch from branch before creating the file
Trait Implementations§
Source§impl Debug for CreateFileRepoBuilder
impl Debug for CreateFileRepoBuilder
Source§impl<'de> Deserialize<'de> for CreateFileRepoBuilder
impl<'de> Deserialize<'de> for CreateFileRepoBuilder
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 CreateFileRepoBuilder
impl RefUnwindSafe for CreateFileRepoBuilder
impl Send for CreateFileRepoBuilder
impl Sync for CreateFileRepoBuilder
impl Unpin for CreateFileRepoBuilder
impl UnwindSafe for CreateFileRepoBuilder
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