pub struct ChangeFileOperation {
pub content: Option<String>,
pub from_path: Option<String>,
pub operation: ChangeFileOperationOperation,
pub path: String,
pub sha: Option<String>,
}Expand description
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: ChangeFileOperationOperationindicates what to do with the file
path: Stringpath to the existing or new file
sha: Option<String>sha is the SHA for the file that already exists, required for update or delete
Trait Implementations§
Source§impl Clone for ChangeFileOperation
impl Clone for ChangeFileOperation
Source§fn clone(&self) -> ChangeFileOperation
fn clone(&self) -> ChangeFileOperation
Returns a duplicate 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<'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