pub struct ClassroomAssignment {Show 19 fields
pub id: i32,
pub public_repo: bool,
pub title: String,
pub type: Type,
pub invite_link: String,
pub invitations_enabled: bool,
pub slug: String,
pub students_are_repo_admins: bool,
pub feedback_pull_requests_enabled: bool,
pub max_teams: Option<i32>,
pub max_members: Option<i32>,
pub editor: String,
pub accepted: i32,
pub submitted: i32,
pub passing: i32,
pub language: String,
pub deadline: Option<String>,
pub starter_code_repository: Box<SimpleClassroomRepository>,
pub classroom: Box<Classroom>,
}Expand description
ClassroomAssignment : A GitHub Classroom assignment
Fields§
§id: i32Unique identifier of the repository.
public_repo: boolWhether an accepted assignment creates a public repository.
title: StringAssignment title.
type: TypeWhether it’s a group assignment or individual assignment.
invite_link: StringThe link that a student can use to accept the assignment.
invitations_enabled: boolWhether the invitation link is enabled. Visiting an enabled invitation link will accept the assignment.
slug: StringSluggified name of the assignment.
students_are_repo_admins: boolWhether students are admins on created repository when a student accepts the assignment.
feedback_pull_requests_enabled: boolWhether feedback pull request will be created when a student accepts the assignment.
max_teams: Option<i32>The maximum allowable teams for the assignment.
max_members: Option<i32>The maximum allowable members per team.
editor: StringThe selected editor for the assignment.
accepted: i32The number of students that have accepted the assignment.
submitted: i32The number of students that have submitted the assignment.
passing: i32The number of students that have passed the assignment.
language: StringThe programming language used in the assignment.
deadline: Option<String>The time at which the assignment is due.
starter_code_repository: Box<SimpleClassroomRepository>§classroom: Box<Classroom>Implementations§
Source§impl ClassroomAssignment
impl ClassroomAssignment
Sourcepub fn new(
id: i32,
public_repo: bool,
title: String,
type: Type,
invite_link: String,
invitations_enabled: bool,
slug: String,
students_are_repo_admins: bool,
feedback_pull_requests_enabled: bool,
max_teams: Option<i32>,
max_members: Option<i32>,
editor: String,
accepted: i32,
submitted: i32,
passing: i32,
language: String,
deadline: Option<String>,
starter_code_repository: SimpleClassroomRepository,
classroom: Classroom,
) -> ClassroomAssignment
pub fn new( id: i32, public_repo: bool, title: String, type: Type, invite_link: String, invitations_enabled: bool, slug: String, students_are_repo_admins: bool, feedback_pull_requests_enabled: bool, max_teams: Option<i32>, max_members: Option<i32>, editor: String, accepted: i32, submitted: i32, passing: i32, language: String, deadline: Option<String>, starter_code_repository: SimpleClassroomRepository, classroom: Classroom, ) -> ClassroomAssignment
A GitHub Classroom assignment
Trait Implementations§
Source§impl Clone for ClassroomAssignment
impl Clone for ClassroomAssignment
Source§fn clone(&self) -> ClassroomAssignment
fn clone(&self) -> ClassroomAssignment
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more