pub struct SettingSystemServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,{ /* private fields */ }Implementations§
Source§impl<IP, OP> SettingSystemServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,
impl<IP, OP> SettingSystemServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,
pub fn new( input_protocol: IP, output_protocol: OP, ) -> SettingSystemServiceSyncClient<IP, OP>
Trait Implementations§
Source§impl<IP, OP> TThriftClient for SettingSystemServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,
impl<IP, OP> TThriftClient for SettingSystemServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,
Source§fn i_prot_mut(&mut self) -> &mut dyn TInputProtocol
fn i_prot_mut(&mut self) -> &mut dyn TInputProtocol
Returns the input protocol used to read serialized Thrift messages
from the Thrift server.
Source§fn o_prot_mut(&mut self) -> &mut dyn TOutputProtocol
fn o_prot_mut(&mut self) -> &mut dyn TOutputProtocol
Returns the output protocol used to write serialized Thrift messages
to the Thrift server.
Source§fn sequence_number(&self) -> i32
fn sequence_number(&self) -> i32
Returns the sequence number of the last message written to the Thrift
server. Returns
0 if no messages have been written. Sequence
numbers should never be negative, and this method returns an i32
simply because the Thrift protocol encodes sequence numbers as i32 on
the wire.Source§fn increment_sequence_number(&mut self) -> i32
fn increment_sequence_number(&mut self) -> i32
Increments the sequence number, indicating that a message with that
number has been sent to the Thrift server.
impl<IP, OP> TSettingSystemServiceSyncClientMarker for SettingSystemServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,
Auto Trait Implementations§
impl<IP, OP> Freeze for SettingSystemServiceSyncClient<IP, OP>
impl<IP, OP> RefUnwindSafe for SettingSystemServiceSyncClient<IP, OP>where
IP: RefUnwindSafe,
OP: RefUnwindSafe,
impl<IP, OP> Send for SettingSystemServiceSyncClient<IP, OP>
impl<IP, OP> Sync for SettingSystemServiceSyncClient<IP, OP>
impl<IP, OP> Unpin for SettingSystemServiceSyncClient<IP, OP>
impl<IP, OP> UnwindSafe for SettingSystemServiceSyncClient<IP, OP>where
IP: UnwindSafe,
OP: UnwindSafe,
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
Source§impl<C> TSettingSystemServiceSyncClient for Cwhere
C: TThriftClient + TSettingSystemServiceSyncClientMarker,
impl<C> TSettingSystemServiceSyncClient for Cwhere
C: TThriftClient + TSettingSystemServiceSyncClientMarker,
Source§fn get_setting_item(&mut self, id: String) -> Result<SettingItem, Error>
fn get_setting_item(&mut self, id: String) -> Result<SettingItem, Error>
Get a setting data of the module.
Source§fn get_setting_items(
&mut self,
category: String,
include_children: bool,
) -> Result<Vec<SettingItem>, Error>
fn get_setting_items( &mut self, category: String, include_children: bool, ) -> Result<Vec<SettingItem>, Error>
Get a list of setting data of the module.
Source§fn search_setting_items(
&mut self,
filter_json: String,
) -> Result<BTreeMap<String, SettingSearchResult>, Error>
fn search_setting_items( &mut self, filter_json: String, ) -> Result<BTreeMap<String, SettingSearchResult>, Error>
Search a set of settings using a json format string.
According to the format of json string your write, searching can be separated to 3 types: simple search, lambda search and complicated search. And each of they can be combined with the other.
Source§fn get_category_node(&mut self) -> Result<SettingTree, Error>
fn get_category_node(&mut self) -> Result<SettingTree, Error>
Get settings and categories in a tree
Source§fn get_child_node(
&mut self,
parent: String,
node_type: NodeType,
param: String,
tags: Vec<String>,
) -> Result<NodeList, Error>
fn get_child_node( &mut self, parent: String, node_type: NodeType, param: String, tags: Vec<String>, ) -> Result<NodeList, Error>
Get child nodes of specified setting item or setting category
Source§fn set_setting_item(&mut self, key: String, val: String) -> Result<bool, Error>
fn set_setting_item(&mut self, key: String, val: String) -> Result<bool, Error>
Set the specified setting’s “dataValue” with the new value
Source§fn set_setting_items(
&mut self,
key_values: BTreeMap<String, String>,
) -> Result<i32, Error>
fn set_setting_items( &mut self, key_values: BTreeMap<String, String>, ) -> Result<i32, Error>
Set a set of settings’ “dataValue”
Source§fn restore_default(
&mut self,
module_name: String,
category: String,
) -> Result<bool, Error>
fn restore_default( &mut self, module_name: String, category: String, ) -> Result<bool, Error>
Restore a module setting to default
Source§fn restore_user_default(
&mut self,
user_id: String,
module_name: String,
category: String,
) -> Result<bool, Error>
fn restore_user_default( &mut self, user_id: String, module_name: String, category: String, ) -> Result<bool, Error>
@RestoreUserDefault_Summary
Source§fn update_module_version(&mut self, module_name: String) -> Result<bool, Error>
fn update_module_version(&mut self, module_name: String) -> Result<bool, Error>
Update the module settings from an older version to the latest one
Source§fn set_user_app_data(
&mut self,
user_id: String,
category: String,
setting_items: BTreeMap<String, SettingValue>,
) -> Result<i32, Error>
fn set_user_app_data( &mut self, user_id: String, category: String, setting_items: BTreeMap<String, SettingValue>, ) -> Result<i32, Error>
@SetUserAppData_Summary
Source§fn get_user_app_data(
&mut self,
user_id: String,
category: String,
setting_keys: Vec<String>,
) -> Result<AppData, Error>
fn get_user_app_data( &mut self, user_id: String, category: String, setting_keys: Vec<String>, ) -> Result<AppData, Error>
@GetUserAppData_Summary
Source§fn remove_user_app_data(
&mut self,
user_id: String,
category: String,
setting_keys: Vec<String>,
) -> Result<i32, Error>
fn remove_user_app_data( &mut self, user_id: String, category: String, setting_keys: Vec<String>, ) -> Result<i32, Error>
@RemoveUserAppData_Summary
Source§fn setting_item_notify(
&mut self,
key: String,
contents: String,
) -> Result<bool, Error>
fn setting_item_notify( &mut self, key: String, contents: String, ) -> Result<bool, Error>
Notify layer0 that a setting item has specific event