Struct rustream::squire::content::ContentPayload
source · pub struct ContentPayload {
pub files: Vec<HashMap<String, String>>,
pub directories: Vec<HashMap<String, String>>,
}Expand description
Represents the payload structure for content, including files and directories.
This struct is used for serialization and deserialization, providing default values when necessary.
Fields§
§files: Vec<HashMap<String, String>>List of files with their names and paths.
directories: Vec<HashMap<String, String>>List of directories with their names and paths.
Trait Implementations§
source§impl Debug for ContentPayload
impl Debug for ContentPayload
source§impl Default for ContentPayload
impl Default for ContentPayload
source§fn default() -> ContentPayload
fn default() -> ContentPayload
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ContentPayload
impl<'de> Deserialize<'de> for ContentPayload
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
Auto Trait Implementations§
impl RefUnwindSafe for ContentPayload
impl Send for ContentPayload
impl Sync for ContentPayload
impl Unpin for ContentPayload
impl UnwindSafe for ContentPayload
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