pub struct SDLExportOptions { /* private fields */ }
Expand description
Options for SDL export
Implementations§
Source§impl SDLExportOptions
impl SDLExportOptions
Sourcepub fn sorted_fields(self) -> Self
pub fn sorted_fields(self) -> Self
Export sorted fields
Sourcepub fn sorted_arguments(self) -> Self
pub fn sorted_arguments(self) -> Self
Export sorted field arguments
Sourcepub fn sorted_enum_items(self) -> Self
pub fn sorted_enum_items(self) -> Self
Export sorted enum items
Sourcepub fn federation(self) -> Self
pub fn federation(self) -> Self
Export as Federation SDL(Schema Definition Language)
Sourcepub fn prefer_single_line_descriptions(self) -> Self
pub fn prefer_single_line_descriptions(self) -> Self
When possible, write one-line instead of three-line descriptions
Sourcepub fn include_specified_by(self) -> Self
pub fn include_specified_by(self) -> Self
Includes specifiedBy
directive in SDL
Sourcepub fn compose_directive(self) -> Self
pub fn compose_directive(self) -> Self
Enable composeDirective
if federation is enabled
Sourcepub fn use_space_ident(self) -> Self
pub fn use_space_ident(self) -> Self
Use spaces for indentation instead of tabs
Sourcepub fn indent_width(self, width: u8) -> Self
pub fn indent_width(self, width: u8) -> Self
Set the number of spaces to use for each indentation level (default: 2).
Only applies when use_space_indent
is true
Trait Implementations§
Source§impl Clone for SDLExportOptions
impl Clone for SDLExportOptions
Source§fn clone(&self) -> SDLExportOptions
fn clone(&self) -> SDLExportOptions
Returns a copy 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 SDLExportOptions
impl Debug for SDLExportOptions
Source§impl Default for SDLExportOptions
impl Default for SDLExportOptions
impl Copy for SDLExportOptions
Auto Trait Implementations§
impl Freeze for SDLExportOptions
impl RefUnwindSafe for SDLExportOptions
impl Send for SDLExportOptions
impl Sync for SDLExportOptions
impl Unpin for SDLExportOptions
impl UnwindSafe for SDLExportOptions
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