telety

Attribute Macro telety 

Source
#[telety]
Expand description

Enable telety for an item.
The first argument must be the path to the current module (e.g. #[telety(crate::my_mod)]).

Optional arguments inlcude:

  • telety_path - Provide a path to the contents of the telety crate.
    #[telety(crate::my_mod, telety_path = "::renamed_telety")]
    By default this is ::telety, but if you have renamed or re-exported the crate you can specify its location here.
  • macro_ident - The identifier for the telety-generated macro.
    #[telety(crate::my_mod, macro_ident = "MyStructImpl")]
    Normally, telety generates a macro with the same identifier as the item. But items such as impls do not have identifiers, so you can manually specify one.
  • visibility - The visibility to generate macros and aliases at.
    #[telety(crate::my_mod, visibility = "pub(crate)")]
    telety uses the visibility of the item by default. If the item has no visibility (such as an impl) or you want a more restrictive visibility, you can use this argument. The visibility must be equal or more restrictive than the item’s visibility.