diff --git a/wfassoc/src/lowlevel.rs b/wfassoc/src/lowlevel.rs index 58157d0..1437ffb 100644 --- a/wfassoc/src/lowlevel.rs +++ b/wfassoc/src/lowlevel.rs @@ -456,12 +456,18 @@ impl AppPathsKey { const NAMEOF_PATH_TO_APPLICATION: &str = ""; - pub fn get_path_to_application(&self, scope: Scope) -> Result { + /// + /// + /// This field point to the fully qualified path to the application. + pub fn get_default(&self, scope: Scope) -> Result { let key = self.open_scope_for_getter(scope)?; Ok(key.get_value(Self::NAMEOF_PATH_TO_APPLICATION)?) } - pub fn set_path_to_application(&mut self, scope: Scope, value: &str) -> Result<(), Error> { + /// + /// + /// This field should be filled with fully qualified path to the application. + pub fn set_default(&mut self, scope: Scope, value: &str) -> Result<(), Error> { let key = self.open_scope_for_setter(scope)?; key.set_value(Self::NAMEOF_PATH_TO_APPLICATION, &value)?; Ok(()) @@ -469,12 +475,20 @@ impl AppPathsKey { const NAMEOF_APPLICATION_DIRECTORY: &str = "Path"; - pub fn get_application_directory(&self, scope: Scope) -> Result { + /// + /// + /// This field point to the added path for PATH environment variable. + /// Usually it is the path to application directory. + pub fn get_path(&self, scope: Scope) -> Result { let key = self.open_scope_for_getter(scope)?; Ok(key.get_value(Self::NAMEOF_APPLICATION_DIRECTORY)?) } - pub fn set_application_directory(&mut self, scope: Scope, value: &str) -> Result<(), Error> { + /// + /// + /// This field should be the added path for PATH environment variable. + /// Usually it is the path to application directory. + pub fn set_path(&mut self, scope: Scope, value: &str) -> Result<(), Error> { let key = self.open_scope_for_setter(scope)?; key.set_value(Self::NAMEOF_APPLICATION_DIRECTORY, &value)?; Ok(())