def to_bytes
import bend-kit-protobuf@0.2.0.0/protobuf.bend as Protobufimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as B
672def to_bytes(v: Value) -> Result<&2, &1, Error, B.Bytes>:
673 match v:
674 case Blob{b}:
675 Done{b}
676 case _:
677 Fail{Malformed{}}