pub struct PostData {
pub mime_type: String,
pub text: Option<String>,
pub params: Option<Vec<Params>>,
pub comment: Option<String>,
pub encoding: Option<String>,
}
Fields§
§mime_type: String
§text: Option<String>
Either text or params but not both : TODO turn into an untagged enum
params: Option<Vec<Params>>
§comment: Option<String>
§encoding: Option<String>
Trait Implementations§
source§impl<'de> Deserialize<'de> for PostData
impl<'de> Deserialize<'de> for PostData
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