pub struct StructuredSpec {
pub format: Format,
pub value: Value,
pub ownership: DocumentOwnership,
pub line_ending: LineEndingSpec,
}Expand description
A structured (JSON, JSON5, TOML, or YAML) document.
Fields§
§format: FormatThe data format used to render the value.
value: ValueThe desired structured value.
ownership: DocumentOwnershipWhether Ephemeris owns the whole value or selected paths.
line_ending: LineEndingSpecThe line ending of the written document.
Implementations§
Source§impl StructuredSpec
impl StructuredSpec
Sourcepub const fn is_partial(&self) -> bool
pub const fn is_partial(&self) -> bool
Whether the document leaves any part of its source user-owned.
Trait Implementations§
Source§impl Clone for StructuredSpec
impl Clone for StructuredSpec
Source§fn clone(&self) -> StructuredSpec
fn clone(&self) -> StructuredSpec
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 StructuredSpec
impl Debug for StructuredSpec
Source§impl<'ʄ> Facet<'ʄ> for StructuredSpec
impl<'ʄ> Facet<'ʄ> for StructuredSpec
Source§impl Payload for StructuredSpec
impl Payload for StructuredSpec
Source§fn line_ending(&self) -> LineEndingSpec
fn line_ending(&self) -> LineEndingSpec
The line ending of the written document.
Auto Trait Implementations§
impl Freeze for StructuredSpec
impl RefUnwindSafe for StructuredSpec
impl Send for StructuredSpec
impl Sync for StructuredSpec
impl Unpin for StructuredSpec
impl UnsafeUnpin for StructuredSpec
impl UnwindSafe for StructuredSpec
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