pub struct IdeSpecificSettings {
pub ide_type: IdeType,
pub enabled_features: Vec<String>,
pub custom_settings: HashMap<String, Value>,
pub timeout_ms: u64,
pub port: u16,
}Expand description
IDE-specific settings
Fields§
§ide_type: IdeTypeIDE type
enabled_features: Vec<String>Enabled features
custom_settings: HashMap<String, Value>Custom settings
timeout_ms: u64Timeout in milliseconds
port: u16Port for communication
Implementations§
Source§impl IdeSpecificSettings
impl IdeSpecificSettings
Sourcepub fn with_feature(self, feature: String) -> Self
pub fn with_feature(self, feature: String) -> Self
Add enabled feature
Sourcepub fn with_timeout(self, timeout_ms: u64) -> Self
pub fn with_timeout(self, timeout_ms: u64) -> Self
Set timeout
Sourcepub fn with_setting(self, key: String, value: Value) -> Self
pub fn with_setting(self, key: String, value: Value) -> Self
Add custom setting
Sourcepub fn is_feature_enabled(&self, feature: &str) -> bool
pub fn is_feature_enabled(&self, feature: &str) -> bool
Check if feature is enabled
Sourcepub fn get_setting(&self, key: &str) -> Option<&Value>
pub fn get_setting(&self, key: &str) -> Option<&Value>
Get custom setting
Trait Implementations§
Source§impl Clone for IdeSpecificSettings
impl Clone for IdeSpecificSettings
Source§fn clone(&self) -> IdeSpecificSettings
fn clone(&self) -> IdeSpecificSettings
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 moreAuto Trait Implementations§
impl Freeze for IdeSpecificSettings
impl RefUnwindSafe for IdeSpecificSettings
impl Send for IdeSpecificSettings
impl Sync for IdeSpecificSettings
impl Unpin for IdeSpecificSettings
impl UnwindSafe for IdeSpecificSettings
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more