public StructProjection wrap(StructLike newStruct) {
    this.struct = newStruct;
    return this;
  }
Creates a projecting wrapper for {@link StructLike} rows.

<p>This projection allows missing fields and does not work with repeated types like lists and
maps.

@param structType type of rows wrapped by this projection
@param projectedStructType result type of the projected rows
@return a wrapper to project rows
iceberg/patched-iceberg-api/src/main/java/org/apache/iceberg/util/StructProjection.java