Skip to main content

validate_model_deployment

Function validate_model_deployment 

Source
pub fn validate_model_deployment(
    deployment: &ModelDeployment,
) -> ValidationResult<()>
Expand description

Validate a ModelDeployment message

Validates:

  • deployment_id is present
  • model_id is present
  • model_version is present
  • model_type is specified (not unspecified)
  • model_url is present and well-formed
  • checksum_sha256 is present and valid length
  • file_size_bytes is non-zero
  • At least one target_platform is specified
  • deployment_policy is specified
  • priority is specified
  • deployed_at timestamp is present
  • deployed_by is present