pub struct PushFile {
pub content: Option<String>,
pub encoding: Option<String>,
pub path: Option<String>,
}Fields§
§content: Option<String>Content is the file’s bytes, carried per Encoding.
encoding: Option<String>Encoding is "base64", or "utf-8" (the default, also "utf8" / "text").
path: Option<String>Path is repo-relative. Absolute or traversing paths are refused.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PushFile
impl<'de> Deserialize<'de> for PushFile
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
impl StructuralPartialEq for PushFile
Auto Trait Implementations§
impl Freeze for PushFile
impl RefUnwindSafe for PushFile
impl Send for PushFile
impl Sync for PushFile
impl Unpin for PushFile
impl UnsafeUnpin for PushFile
impl UnwindSafe for PushFile
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