pub struct MetadataOptions { /* private fields */ }Expand description
Optional artifact metadata controls.
The default embeds no optional metadata. Opt in to each component with the
with_* setters:
use excalidraw_render::MetadataOptions;
let options = MetadataOptions::default()
.with_embedded_scene(true)
.with_provenance(true);
assert!(options.embedded_scene() && options.provenance());
assert!(!options.diagnostic_summary());Implementations§
Source§impl MetadataOptions
impl MetadataOptions
Sourcepub const fn with_embedded_scene(self, embedded_scene: bool) -> Self
pub const fn with_embedded_scene(self, embedded_scene: bool) -> Self
Selects whether the canonicalized original scene document is embedded
(default false).
Sourcepub const fn with_provenance(self, provenance: bool) -> Self
pub const fn with_provenance(self, provenance: bool) -> Self
Selects whether renderer provenance is embedded (default false).
Sourcepub const fn with_diagnostic_summary(self, diagnostic_summary: bool) -> Self
pub const fn with_diagnostic_summary(self, diagnostic_summary: bool) -> Self
Selects whether the pre-metadata diagnostic summary is embedded
(default false).
Sourcepub const fn embedded_scene(&self) -> bool
pub const fn embedded_scene(&self) -> bool
Returns whether the canonicalized original scene document is embedded.
Sourcepub const fn provenance(&self) -> bool
pub const fn provenance(&self) -> bool
Returns whether renderer provenance is embedded.
Sourcepub const fn diagnostic_summary(&self) -> bool
pub const fn diagnostic_summary(&self) -> bool
Returns whether the pre-metadata diagnostic summary is embedded.
Trait Implementations§
Source§impl Clone for MetadataOptions
impl Clone for MetadataOptions
Source§impl Debug for MetadataOptions
impl Debug for MetadataOptions
Source§impl Default for MetadataOptions
impl Default for MetadataOptions
impl Eq for MetadataOptions
Source§impl PartialEq for MetadataOptions
impl PartialEq for MetadataOptions
impl StructuralPartialEq for MetadataOptions
Auto Trait Implementations§
impl Freeze for MetadataOptions
impl RefUnwindSafe for MetadataOptions
impl Send for MetadataOptions
impl Sync for MetadataOptions
impl Unpin for MetadataOptions
impl UnsafeUnpin for MetadataOptions
impl UnwindSafe for MetadataOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.