Skip to main content

choose

Function choose 

Source
pub fn choose(
    offer: &[FormatId],
    accepts: &[FormatId],
    transforms: &[TransformSpec],
    format: Option<&FormatId>,
    transform: Option<&str>,
) -> Result<Plan, Refusal>
Expand description

negotiate, held to the format the target should receive (format) and the transform to use (transform), when given: what paste special and an agent’s paste ask for.