pub struct CallRequest {
pub to: String,
pub message: Option<String>,
pub context: Option<String>,
pub reason: Option<String>,
}Fields§
§to: StringPhone number to call (E.164 format, e.g., “+34612345678”)
message: Option<String>Deprecated — kept for API backward compatibility. No longer used.
context: Option<String>Optional context for the AI — why this call is being made. Injected into the first Claude prompt so it knows the reason for calling.
reason: Option<String>Short reason for calling, used in the outbound greeting. e.g., “I found something interesting in the logs”
Trait Implementations§
Source§impl Debug for CallRequest
impl Debug for CallRequest
Source§impl<'de> Deserialize<'de> for CallRequest
impl<'de> Deserialize<'de> for CallRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CallRequest
impl RefUnwindSafe for CallRequest
impl Send for CallRequest
impl Sync for CallRequest
impl Unpin for CallRequest
impl UnsafeUnpin for CallRequest
impl UnwindSafe for CallRequest
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