pub struct UpdateFileRepoBuilder { /* private fields */ }
Implementations§
Source§impl UpdateFileRepoBuilder
impl UpdateFileRepoBuilder
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 from_path(self, from_path: impl Into<String>) -> Self
pub fn from_path(self, from_path: impl Into<String>) -> Self
from_path (optional) is the path of the original file which will be moved/renamed to the path in the URL
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 UpdateFileRepoBuilder
impl Debug for UpdateFileRepoBuilder
Source§impl<'de> Deserialize<'de> for UpdateFileRepoBuilder
impl<'de> Deserialize<'de> for UpdateFileRepoBuilder
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 UpdateFileRepoBuilder
impl RefUnwindSafe for UpdateFileRepoBuilder
impl Send for UpdateFileRepoBuilder
impl Sync for UpdateFileRepoBuilder
impl Unpin for UpdateFileRepoBuilder
impl UnwindSafe for UpdateFileRepoBuilder
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