Skip to content

Не работает установка default параметров функций. #21

Description

@kuzmin-rostislav

Описание функции выглядит так:

#[add_in_func(name = "MyFunc", name_ru = "MyFunc")]
#[arg(Str)]
#[arg(Str, default = "aaa")]
#[returns(Str, result)]
my_func: fn(&Self, String, String) -> Result<String, Box<dyn std::error::Error>>,

Реализация функции:

pub fn my_func(&self, path: String, password: String) -> Result<String, Box<dyn std::error::Error>> {
...
}

Если из 1С функция вызывается с 2 параметрами, тогда всё ок. Если передаю только один параметр, получаю ошибку "Недостаточно фактических параметров".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions