pub struct SettingsApi<'a> { /* private fields */ }Implementations§
Source§impl<'a> SettingsApi<'a>
impl<'a> SettingsApi<'a>
pub async fn get_all(&self) -> Result<AllSetting>
pub async fn get_defaults(&self) -> Result<Value>
pub async fn update(&self, settings: &AllSetting) -> Result<()>
pub async fn update_user( &self, old_username: &str, old_password: &str, new_username: &str, new_password: &str, ) -> Result<()>
pub async fn restart_panel(&self) -> Result<()>
pub async fn default_xray_config(&self) -> Result<Value>
Auto Trait Implementations§
impl<'a> Freeze for SettingsApi<'a>
impl<'a> !RefUnwindSafe for SettingsApi<'a>
impl<'a> Send for SettingsApi<'a>
impl<'a> Sync for SettingsApi<'a>
impl<'a> Unpin for SettingsApi<'a>
impl<'a> UnsafeUnpin for SettingsApi<'a>
impl<'a> !UnwindSafe for SettingsApi<'a>
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