lightbulb/services/ags/line_item

Types

Represents a line item in the AGS (Assignment Grading Service).

pub type LineItem {
  LineItem(
    id: Option(String),
    score_maximum: Float,
    label: String,
    resource_id: String,
  )
}

Constructors

  • LineItem(
      id: Option(String),
      score_maximum: Float,
      label: String,
      resource_id: String,
    )

Values

pub fn decoder() -> Decoder(LineItem)

Decodes a JSON object into a LineItem.

pub fn to_json(line_item: LineItem) -> Json

Converts a LineItem to a JSON representation.

Search Document