pub struct BreakTime {
    pub time: u32,
    pub is_seconds: bool,
}
Expand description

Denotes the potential amount of time to Break inside the Break Tag. These values are straight out of the SSML 1.1 W3C Standard which can be found HERE and what they actually do in polly is documented: HERE.

Fields

time: u32

The actual value of time to break for.

is_seconds: bool

If the break time is in seconds. If this is set to false it is believed to be in milliseconds.

Implementations

Constructs a new Break Time.

Examples
use text_to_polly_ssml::ssml_constants::BreakTime;
let break_time = BreakTime::new(10, true);
let other_break_time = BreakTime::new(5, false);

Trait Implementations

Formats the value using the given formatter. Read more
The associated error which can be returned from parsing.
Parses a string s to return a value of this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.