pub struct ChangeFileOperation {
pub content: Option<String>,
pub from_path: Option<String>,
pub operation: Operation,
pub path: String,
pub sha: Option<String>,
}
Expand description
ChangeFileOperation : ChangeFileOperation for creating, updating or deleting a file
Fields§
§content: Option<String>
new or updated file content, must be base64 encoded
from_path: Option<String>
old path of the file to move
operation: Operation
indicates what to do with the file
path: String
path to the existing or new file
sha: Option<String>
sha is the SHA for the file that already exists, required for update or delete
Implementations§
Source§impl ChangeFileOperation
impl ChangeFileOperation
Sourcepub fn new(operation: Operation, path: String) -> ChangeFileOperation
pub fn new(operation: Operation, path: String) -> ChangeFileOperation
ChangeFileOperation for creating, updating or deleting a file
Trait Implementations§
Source§impl Clone for ChangeFileOperation
impl Clone for ChangeFileOperation
Source§fn clone(&self) -> ChangeFileOperation
fn clone(&self) -> ChangeFileOperation
Returns a copy of the value. Read more
1.0.0 · 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 ChangeFileOperation
impl Debug for ChangeFileOperation
Source§impl Default for ChangeFileOperation
impl Default for ChangeFileOperation
Source§fn default() -> ChangeFileOperation
fn default() -> ChangeFileOperation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChangeFileOperation
impl<'de> Deserialize<'de> for ChangeFileOperation
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
Source§impl PartialEq for ChangeFileOperation
impl PartialEq for ChangeFileOperation
Source§impl Serialize for ChangeFileOperation
impl Serialize for ChangeFileOperation
impl StructuralPartialEq for ChangeFileOperation
Auto Trait Implementations§
impl Freeze for ChangeFileOperation
impl RefUnwindSafe for ChangeFileOperation
impl Send for ChangeFileOperation
impl Sync for ChangeFileOperation
impl Unpin for ChangeFileOperation
impl UnwindSafe for ChangeFileOperation
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