pub struct WriteOptions {
pub format_version: String,
pub standard_version: String,
pub write_block_index: bool,
pub write_checksums: bool,
pub emit: EmitOptions,
pub tree_padding: usize,
pub asdf_library: Option<Software>,
}Expand description
How to write a file.
Fields§
§format_version: StringThe version written on the #ASDF header line.
standard_version: StringThe version written on the #ASDF_STANDARD comment line.
write_block_index: boolWrite a block index after the last block.
write_checksums: boolCompute and store each block’s MD5 checksum.
emit: EmitOptionsHow the YAML tree is laid out.
tree_padding: usizeBytes of padding between the tree and the first block, so the tree can grow later without rewriting the whole file.
asdf_library: Option<Software>The asdf_library provenance to record, unless the tree already has
one.
Every ASDF writer stamps the file with what wrote it, and readers act
on it: the workaround for the Python checksum bug keys off exactly
this field. None writes nothing, which is what a caller reproducing
another writer’s output wants.
Trait Implementations§
Source§impl Clone for WriteOptions
impl Clone for WriteOptions
Source§fn clone(&self) -> WriteOptions
fn clone(&self) -> WriteOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WriteOptions
impl Debug for WriteOptions
Auto Trait Implementations§
impl Freeze for WriteOptions
impl RefUnwindSafe for WriteOptions
impl Send for WriteOptions
impl Sync for WriteOptions
impl Unpin for WriteOptions
impl UnsafeUnpin for WriteOptions
impl UnwindSafe for WriteOptions
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