Skip to main content

RenderMetadata

Struct RenderMetadata 

Source
pub struct RenderMetadata {
Show 22 fields pub contract_version: u32, pub width: f32, pub height: f32, pub part_count: usize, pub staff_count: usize, pub measure_count: usize, pub note_count: usize, pub view: Option<RenderedViewMetadata>, pub accessible_text: String, pub address_bounds: Vec<AddressBounds>, pub text_annotations: Vec<TextAnnotation>, pub score_texts: Vec<ScoreTextMetadata>, pub tablature_positions: Vec<TablaturePositionMetadata>, pub tablature_staves: Vec<TablatureStaffMetadata>, pub tablature_changes: Vec<TablatureChangeMetadata>, pub harmony_ranges: Vec<HarmonyRangeMetadata>, pub tablature_technique_connections: Vec<TablatureTechniqueConnectionMetadata>, pub note_semantics: Vec<NoteSemanticMetadata>, pub object_style_overrides: Vec<ObjectStyleOverride>, pub harp_pedal_diagrams: Vec<HarpPedalDiagramMetadata>, pub section_breaks: Vec<usize>, pub staff_presentations: Vec<StaffPresentationMetadata>,
}
Expand description

Lightweight browser-facing metadata for a rendered score.

Fields§

§contract_version: u32

Version of the metadata contract, for forward-compatible browser hosts.

§width: f32§height: f32§part_count: usize§staff_count: usize§measure_count: usize§note_count: usize§view: Option<RenderedViewMetadata>

Resolved linked-view context when the caller used render_svg_view_metadata. None means the source score was rendered directly.

§accessible_text: String

Human-readable fallback text for hosts that cannot expose the SVG semantics.

§address_bounds: Vec<AddressBounds>§text_annotations: Vec<TextAnnotation>

Measure-level text with its stable score location and typed presentation role.

§score_texts: Vec<ScoreTextMetadata>

Score-level title-page text imported from formats such as MuseScore VBox.

§tablature_positions: Vec<TablaturePositionMetadata>

String/fret positions exposed without requiring hosts to parse SVG elements.

§tablature_staves: Vec<TablatureStaffMetadata>

Tuning and capo metadata for each rendered tablature staff.

§tablature_changes: Vec<TablatureChangeMetadata>

Measure-local tuning or capo changes for tablature hosts.

§harmony_ranges: Vec<HarmonyRangeMetadata>

Chord labels whose continuation range is exposed with typed note addresses.

§tablature_technique_connections: Vec<TablatureTechniqueConnectionMetadata>

Tablature technique connections with stable start/end note addresses.

§note_semantics: Vec<NoteSemanticMetadata>

Note-level semantic fields needed by browser playback and editing hosts.

§object_style_overrides: Vec<ObjectStyleOverride>

Typed object-level presentation overrides, preserved for browser hosts without SVG parsing.

§harp_pedal_diagrams: Vec<HarpPedalDiagramMetadata>

Harp pedal diagrams in the conventional D-C-B / E-F-G-A order.

§section_breaks: Vec<usize>

Semantic section boundaries by physical measure; unrelated to page or system breaks.

§staff_presentations: Vec<StaffPresentationMetadata>

Renderer-independent presentation selected for every rendered staff.

Trait Implementations§

Source§

impl Clone for RenderMetadata

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RenderMetadata

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for RenderMetadata

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for RenderMetadata

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.