pub struct Settings { /* private fields */ }
Implementations§
source§impl Settings
impl Settings
pub fn new() -> Ref<Self>
pub fn new_with_id<S: BnStrCompatible>(instance_id: S) -> Ref<Self>
pub fn set_resource_id<S: BnStrCompatible>(&self, resource_id: S)
pub fn serialize_schema(&self) -> BnString
pub fn deserialize_schema<S: BnStrCompatible>(&self, schema: S) -> bool
pub fn deserialize_schema_with_scope<S: BnStrCompatible>( &self, schema: S, scope: SettingsScope, ) -> bool
pub fn contains<S: BnStrCompatible>(&self, key: S) -> bool
pub fn keys(&self) -> Array<BnString>
pub fn get_bool<S: BnStrCompatible>(&self, key: S) -> bool
pub fn get_bool_with_opts<S: BnStrCompatible>( &self, key: S, options: &mut QueryOptions<'_>, ) -> bool
pub fn get_double<S: BnStrCompatible>(&self, key: S) -> f64
pub fn get_double_with_opts<S: BnStrCompatible>( &self, key: S, options: &mut QueryOptions<'_>, ) -> f64
pub fn get_integer<S: BnStrCompatible>(&self, key: S) -> u64
pub fn get_integer_with_opts<S: BnStrCompatible>( &self, key: S, options: &mut QueryOptions<'_>, ) -> u64
pub fn get_string<S: BnStrCompatible>(&self, key: S) -> BnString
pub fn get_string_with_opts<S: BnStrCompatible>( &self, key: S, options: &mut QueryOptions<'_>, ) -> BnString
pub fn get_string_list<S: BnStrCompatible>(&self, key: S) -> Array<BnString>
pub fn get_string_list_with_opts<S: BnStrCompatible>( &self, key: S, options: &mut QueryOptions<'_>, ) -> Array<BnString>
pub fn get_json<S: BnStrCompatible>(&self, key: S) -> BnString
pub fn get_json_with_opts<S: BnStrCompatible>( &self, key: S, options: &mut QueryOptions<'_>, ) -> BnString
pub fn set_bool<S: BnStrCompatible>(&self, key: S, value: bool)
pub fn set_bool_with_opts<S: BnStrCompatible>( &self, key: S, value: bool, options: &QueryOptions<'_>, )
pub fn set_double<S: BnStrCompatible>(&self, key: S, value: f64)
pub fn set_double_with_opts<S: BnStrCompatible>( &self, key: S, value: f64, options: &QueryOptions<'_>, )
pub fn set_integer<S: BnStrCompatible>(&self, key: S, value: u64)
pub fn set_integer_with_opts<S: BnStrCompatible>( &self, key: S, value: u64, options: &QueryOptions<'_>, )
pub fn set_string<S1: BnStrCompatible, S2: BnStrCompatible>( &self, key: S1, value: S2, )
pub fn set_string_with_opts<S1: BnStrCompatible, S2: BnStrCompatible>( &self, key: S1, value: S2, options: &QueryOptions<'_>, )
pub fn set_string_list<S1: BnStrCompatible, S2: BnStrCompatible, I: Iterator<Item = S2>>( &self, key: S1, value: I, ) -> bool
pub fn set_string_list_with_opts<S1: BnStrCompatible, S2: BnStrCompatible, I: Iterator<Item = S2>>( &self, key: S1, value: I, options: &QueryOptions<'_>, ) -> bool
pub fn set_json<S1: BnStrCompatible, S2: BnStrCompatible>( &self, key: S1, value: S2, ) -> bool
pub fn set_json_with_opts<S1: BnStrCompatible, S2: BnStrCompatible>( &self, key: S1, value: S2, options: &QueryOptions<'_>, ) -> bool
pub fn get_property_string<S: BnStrCompatible>( &self, key: S, property: S, ) -> BnString
pub fn get_property_string_list<S: BnStrCompatible>( &self, key: S, property: S, ) -> Array<BnString>
pub fn update_bool_property<S: BnStrCompatible>( &self, key: S, property: S, value: bool, )
pub fn update_integer_property<S: BnStrCompatible>( &self, key: S, property: S, value: u64, )
pub fn update_double_property<S: BnStrCompatible>( &self, key: S, property: S, value: f64, )
pub fn update_string_property<S: BnStrCompatible>( &self, key: S, property: S, value: S, )
pub fn update_string_list_property<S: BnStrCompatible, I: Iterator<Item = S>>( &self, key: S, property: S, value: I, )
pub fn register_group<S1: BnStrCompatible, S2: BnStrCompatible>( &self, group: S1, title: S2, ) -> bool
pub fn register_setting_json<S1: BnStrCompatible, S2: BnStrCompatible>( &self, group: S1, properties: S2, ) -> bool
Trait Implementations§
source§impl ToOwned for Settings
impl ToOwned for Settings
impl Eq for Settings
impl Send for Settings
impl StructuralPartialEq for Settings
impl Sync for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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