pub struct EnhanceMessageRequest {
pub text: Option<String>,
pub message_type: Option<String>,
}Expand description
Request to AI-enhance a draft message. Provide text, message_type, or
both — at least one is required.
Fields§
§text: Option<String>Draft message text to rewrite. Optional if message_type is provided
(the model then generates a suitable message for that type). Only the
first 500 characters are considered; the result is trimmed to one SMS
segment.
message_type: Option<String>Hint about the kind of message so the rewrite is targeted (e.g.
“marketing”, “transactional”). Optional if text is provided.
Implementations§
Trait Implementations§
Source§impl Clone for EnhanceMessageRequest
impl Clone for EnhanceMessageRequest
Source§fn clone(&self) -> EnhanceMessageRequest
fn clone(&self) -> EnhanceMessageRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnhanceMessageRequest
impl Debug for EnhanceMessageRequest
Source§impl Default for EnhanceMessageRequest
impl Default for EnhanceMessageRequest
Source§fn default() -> EnhanceMessageRequest
fn default() -> EnhanceMessageRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EnhanceMessageRequest
impl RefUnwindSafe for EnhanceMessageRequest
impl Send for EnhanceMessageRequest
impl Sync for EnhanceMessageRequest
impl Unpin for EnhanceMessageRequest
impl UnsafeUnpin for EnhanceMessageRequest
impl UnwindSafe for EnhanceMessageRequest
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