pub fn validate_get_object_requests(
requests: &[GetObjectRequest],
read_mask: Option<FieldMask>,
batch: bool,
) -> Result<(Vec<(Address, ObjectSelector)>, FieldMaskTree), RpcError>Expand description
Validate each request’s object_id and selector fields, and the read mask shared by all of
them; each request’s own read_mask is ignored. A request that sets both version and
max_version is rejected. at_checkpoint combines with either. batch says whether
requests are the items of a BatchGetObjects request: the max_version violation then
names the item (requests[i].max_version), and for a GetObject request the field alone.