pub struct FileInput {
pub content: Option<String>,
pub path: Option<String>,
}Fields§
§content: Option<String>Content is the file’s full text. Max 1 MiB per file; binary files should simply be omitted rather than sent.
path: Option<String>Path is the file’s repo-relative path, e.g. "internal/store/db.go".
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileInput
impl<'de> Deserialize<'de> for FileInput
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 FileInput
Auto Trait Implementations§
impl Freeze for FileInput
impl RefUnwindSafe for FileInput
impl Send for FileInput
impl Sync for FileInput
impl Unpin for FileInput
impl UnsafeUnpin for FileInput
impl UnwindSafe for FileInput
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