pub struct SignalConfig {
pub enabled: bool,
pub phone_number: String,
pub data_dir: PathBuf,
pub allowlist: Vec<String>,
pub allowed_groups: Vec<String>,
pub signal_cli_path: Option<PathBuf>,
pub use_libsignal: bool,
pub rate_limit_per_minute: u32,
pub require_allowlist: bool,
}Expand description
Signal messenger configuration.
Fields§
§enabled: bool§phone_number: StringBot’s phone number (E.164 format, e.g., +1234567890)
data_dir: PathBufPath to signal-cli data directory
allowlist: Vec<String>Allowed phone numbers (empty = allow all)
allowed_groups: Vec<String>Allowed group IDs (empty = allow all)
signal_cli_path: Option<PathBuf>Path to signal-cli binary (None = use system PATH)
use_libsignal: boolUse native libsignal-client instead of signal-cli
rate_limit_per_minute: u32Rate limit for outgoing messages per minute
require_allowlist: boolRequire allowlist for security
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