pub struct SignalConfig {
pub enabled: bool,
pub phone_number: String,
pub daemon_url: String,
pub allowed_numbers: Vec<String>,
}Expand description
Signal channel adapter configuration. Uses signal-cli’s JSON-RPC daemon as a local relay for sending and receiving messages.
Fields§
§enabled: bool§phone_number: StringPhone number registered with signal-cli (e.g. “+15551234567”).
daemon_url: StringBase URL of the signal-cli JSON-RPC daemon (default: http://127.0.0.1:8080).
allowed_numbers: Vec<String>Contacts (phone numbers) allowed to talk to the agent. Empty = allow all.
Trait Implementations§
Source§impl Clone for SignalConfig
impl Clone for SignalConfig
Source§fn clone(&self) -> SignalConfig
fn clone(&self) -> SignalConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 SignalConfig
impl Debug for SignalConfig
Source§impl<'de> Deserialize<'de> for SignalConfig
impl<'de> Deserialize<'de> for SignalConfig
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 SignalConfig
impl RefUnwindSafe for SignalConfig
impl Send for SignalConfig
impl Sync for SignalConfig
impl Unpin for SignalConfig
impl UnsafeUnpin for SignalConfig
impl UnwindSafe for SignalConfig
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