[−][src]Function serde_ltsv::to_string
pub fn to_string<T: ?Sized>(value: &T) -> Result<String, LtsvError> where
T: Serialize,
Serialize the given data structure as a String of LTSV.
Example
#[derive(Serialize)] struct Foo { a: String, b: i8, c: bool, } let foo = Foo { a: "Test".into(), b:8, c: false }; println!("{}", serde_ltsv::to_string(&foo).unwrap());
Output:
a:Test b:8 c:false