#[derive(Embed)]
{
// Attributes available to this derive:
#[embed]
}
Available on crate feature
derive
only.Expand description
A macro that allows you to implement the rig::embedding::Embed
trait by deriving it.
Usage can be found below:
#[derive(Embed)]
struct Foo {
id: String,
#[embed] // this helper shows which field to embed
description: String
}