We currently don’t have a clean way to auto generate candid for rust canister.
While there is a workaround as described in this post:
The SDK team envisions a redesign of Rust CDK which can provide more ergonomic developer experience. Auto generating candid is one of the features we plan to provide. The work is still in early stage.