[][src]Struct roost_app::state::entry_contents::EntryContents

pub struct EntryContents {
    pub path: PathBuf,
    pub patches: Vec<PatchHeader>,
    pub selected_patch: Option<String>,
    pub dir_contents: Option<Vec<DirEntry>>,
    pub file_contents: Option<String>,
}

A subset of the application state, used for JSON responses

Fields

path: PathBuf

The relative path of this repository entry

patches: Vec<PatchHeader>

A Vec of patches that touch this entry or one of its descendants

selected_patch: Option<String>

The currently selected patch this entry's contents refer to

dir_contents: Option<Vec<DirEntry>>

If this entry is a directory, the children entries of this directory are stored here. If this entry is a file, this value is set to None

file_contents: Option<String>

If this entry is a file, the contents of the file are stored here. If this entry is a directory, the contents of README.md within this directory are stored here

Trait Implementations

impl Serialize for EntryContents[src]

impl<'de> Deserialize<'de> for EntryContents[src]

fn deserialize_in_place<D>(
    deserializer: D,
    place: &mut Self
) -> Result<(), <D as Deserializer<'de>>::Error> where
    D: Deserializer<'de>, 
[src]

Deserializes a value into self from the given Deserializer. Read more

Auto Trait Implementations

impl Send for EntryContents

impl Sync for EntryContents

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]