pub struct FormatOptions {
pub delimiter: Option<char>,
pub no_header: bool,
pub pretty: bool,
pub compact: bool,
pub flow_style: bool,
pub root_element: Option<String>,
pub styled: bool,
pub full_html: bool,
pub indent: Option<String>,
pub sort_keys: bool,
}Expand description
Format-specific options controlling how data is read or written.
Use Default::default() to get sensible defaults.
Fields§
§delimiter: Option<char>CSV delimiter (기본: ‘,’)
no_header: boolCSV 헤더 없음 모드
pretty: boolPretty-print 출력
compact: boolCompact 출력 (JSON)
flow_style: boolYAML inline/flow 스타일
root_element: Option<String>XML 루트 엘리먼트 이름 (기본: “root”)
styled: boolHTML 인라인 CSS 스타일 포함
full_html: boolHTML 완전한 문서 출력
indent: Option<String>JSON 들여쓰기 설정 (숫자: 스페이스 수, “tab”: 탭 문자)
sort_keys: boolJSON 오브젝트 키를 알파벳순으로 정렬
Trait Implementations§
Source§impl Clone for FormatOptions
impl Clone for FormatOptions
Source§fn clone(&self) -> FormatOptions
fn clone(&self) -> FormatOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 FormatOptions
impl Debug for FormatOptions
Auto Trait Implementations§
impl Freeze for FormatOptions
impl RefUnwindSafe for FormatOptions
impl Send for FormatOptions
impl Sync for FormatOptions
impl Unpin for FormatOptions
impl UnsafeUnpin for FormatOptions
impl UnwindSafe for FormatOptions
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