pub struct SpeakableString { /* private fields */ }Expand description
Wraps INSpeakableString.
Implementations§
Source§impl SpeakableString
impl SpeakableString
Sourcepub fn new(
vocabulary_identifier: &str,
spoken_phrase: &str,
pronunciation_hint: Option<&str>,
) -> Result<Self, IntentsError>
pub fn new( vocabulary_identifier: &str, spoken_phrase: &str, pronunciation_hint: Option<&str>, ) -> Result<Self, IntentsError>
Creates a INSpeakableString wrapper.
Sourcepub fn class_name(&self) -> String
pub fn class_name(&self) -> String
Returns the Objective-C class name for this INSpeakableString instance.
Sourcepub fn vocabulary_identifier(&self) -> Option<String>
pub fn vocabulary_identifier(&self) -> Option<String>
Returns the corresponding value from INSpeakableString.
Sourcepub fn spoken_phrase(&self) -> Option<String>
pub fn spoken_phrase(&self) -> Option<String>
Returns the corresponding value from INSpeakableString.
Sourcepub fn pronunciation_hint(&self) -> Option<String>
pub fn pronunciation_hint(&self) -> Option<String>
Returns the corresponding value from INSpeakableString.
Trait Implementations§
Source§impl Debug for SpeakableString
impl Debug for SpeakableString
Auto Trait Implementations§
impl Freeze for SpeakableString
impl RefUnwindSafe for SpeakableString
impl !Send for SpeakableString
impl !Sync for SpeakableString
impl Unpin for SpeakableString
impl UnsafeUnpin for SpeakableString
impl UnwindSafe for SpeakableString
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