pub struct ProjectsFile {
pub content: Option<String>,
pub path: Option<String>,
}Fields§
§content: Option<String>Content is the file’s whole text, inline. There is no upload step and no reference to fetch: a site is sent as its bytes, and each file and the site as a whole are size-bounded.
path: Option<String>Path is where the file lands in the site, RELATIVE to its root — so "index.html" is the page served at /. Leading slashes and any attempt to escape the root are refused.
Implementations§
Source§impl ProjectsFile
impl ProjectsFile
pub fn new() -> ProjectsFile
Trait Implementations§
Source§impl Clone for ProjectsFile
impl Clone for ProjectsFile
Source§fn clone(&self) -> ProjectsFile
fn clone(&self) -> ProjectsFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProjectsFile
impl Debug for ProjectsFile
Source§impl Default for ProjectsFile
impl Default for ProjectsFile
Source§fn default() -> ProjectsFile
fn default() -> ProjectsFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProjectsFile
impl<'de> Deserialize<'de> for ProjectsFile
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 ProjectsFile
impl PartialEq for ProjectsFile
Source§impl Serialize for ProjectsFile
impl Serialize for ProjectsFile
impl StructuralPartialEq for ProjectsFile
Auto Trait Implementations§
impl Freeze for ProjectsFile
impl RefUnwindSafe for ProjectsFile
impl Send for ProjectsFile
impl Sync for ProjectsFile
impl Unpin for ProjectsFile
impl UnsafeUnpin for ProjectsFile
impl UnwindSafe for ProjectsFile
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