Skip to main content

SlideNode

Enum SlideNode 

Source
pub enum SlideNode {
    Shape {
Show 24 fields metadata: Option<Box<NodeMetadata>>, id: String, name: String, transform: Transform, geometry: ShapeGeometry, shape_svg: Option<String>, paint_bounds: Option<PaintBounds>, source_xml: Option<String>, fill: Option<FillStyle>, line: Option<LineStyle>, paragraphs: Vec<TextParagraph>, vertical_alignment: Option<VerticalAlignment>, text_insets: Option<TextInsets>, autofit: Option<TextAutofit>, text_rotation: Option<f64>, text_transform: Option<Transform>, vertical_text: Option<String>, horizontal_overflow: Option<String>, vertical_overflow: Option<String>, text_wrap: Option<String>, column_count: Option<usize>, column_spacing: Option<i64>, right_to_left_columns: Option<bool>, space_first_last_paragraph: Option<bool>,
}, Image {
Show 16 fields metadata: Option<Box<NodeMetadata>>, model_3d: Option<Box<Model3D>>, ink: Option<Box<InkContent>>, id: String, name: String, transform: Transform, asset_id: String, fallback_asset_id: Option<String>, crop: Option<ImageCrop>, opacity: Option<f64>, preserve_aspect_ratio: bool, effects: Option<ImageEffects>, picture_svg: Option<String>, fallback_picture: Option<Box<PictureArtwork>>, paint_bounds: Option<PaintBounds>, source_xml: Option<String>,
}, Group { metadata: Option<Box<NodeMetadata>>, id: String, name: String, transform: Transform, children: Vec<SlideNode>, child_transform: Option<Transform>, }, Table { metadata: Option<Box<NodeMetadata>>, id: String, name: String, transform: Transform, rows: Vec<Vec<TableCell>>, column_widths: Vec<i64>, row_heights: Vec<i64>, }, Chart { metadata: Option<Box<NodeMetadata>>, id: String, name: String, transform: Transform, chart_type: String, title: Option<String>, series: Vec<ChartSeries>, has_legend: Option<bool>, chart_xml: Option<String>, chart_svg: Option<String>, chart_style_xml: Option<String>, chart_colors_xml: Option<String>, }, Media { metadata: Option<Box<NodeMetadata>>, id: String, name: String, transform: Transform, media_type: MediaType, asset_id: Option<String>, source_url: Option<String>, poster_asset_id: Option<String>, poster: Option<Box<SlideNode>>, playback: Option<MediaPlayback>, embedded_object: Option<EmbeddedObject>, source_xml: Option<String>, }, Unknown { metadata: Option<Box<NodeMetadata>>, id: String, name: String, transform: Transform, feature: String, }, }

Variants§

§

Shape

Fields

§name: String
§transform: Transform
§geometry: ShapeGeometry
§shape_svg: Option<String>
§paint_bounds: Option<PaintBounds>
§source_xml: Option<String>
§paragraphs: Vec<TextParagraph>
§vertical_alignment: Option<VerticalAlignment>
§text_insets: Option<TextInsets>
§text_rotation: Option<f64>
§text_transform: Option<Transform>
§vertical_text: Option<String>
§horizontal_overflow: Option<String>
§vertical_overflow: Option<String>
§text_wrap: Option<String>
§column_count: Option<usize>
§column_spacing: Option<i64>
§right_to_left_columns: Option<bool>
§space_first_last_paragraph: Option<bool>
§

Image

Fields

§model_3d: Option<Box<Model3D>>
§name: String
§transform: Transform
§asset_id: String
§fallback_asset_id: Option<String>
§opacity: Option<f64>
§preserve_aspect_ratio: bool
§picture_svg: Option<String>
§fallback_picture: Option<Box<PictureArtwork>>
§paint_bounds: Option<PaintBounds>
§source_xml: Option<String>
§

Group

Fields

§name: String
§transform: Transform
§children: Vec<SlideNode>
§child_transform: Option<Transform>
§

Table

Fields

§name: String
§transform: Transform
§column_widths: Vec<i64>
§row_heights: Vec<i64>
§

Chart

Fields

§name: String
§transform: Transform
§chart_type: String
§has_legend: Option<bool>
§chart_xml: Option<String>

Raw DrawingML chart part XML (c:chartSpace or cx:chartSpace) so viewers can render with full PowerPoint fidelity.

§chart_svg: Option<String>

Chart artwork at the dimensions of the slide frame.

§chart_style_xml: Option<String>

Optional companion chart style definition.

§chart_colors_xml: Option<String>

Optional companion chart color style definition.

§

Media

Fields

§name: String
§transform: Transform
§media_type: MediaType
§asset_id: Option<String>
§source_url: Option<String>
§poster_asset_id: Option<String>
§embedded_object: Option<EmbeddedObject>
§source_xml: Option<String>
§

Unknown

Fields

§name: String
§transform: Transform
§feature: String

Implementations§

Source§

impl SlideNode

Source

pub fn metadata_mut(&mut self) -> &mut NodeMetadata

Trait Implementations§

Source§

impl Clone for SlideNode

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 SlideNode

Source§

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

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

impl<'de> Deserialize<'de> for SlideNode

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 SlideNode

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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.