pub struct StudentContext {
pub submission_id: Option<String>,
}Expand description
Role-specific context if the requesting user is a student.
This type is not used in any activity, and only used as part of another schema.
Fields§
§submission_id: Option<String>Requesting user’s submission id to be used for grade passback and to identify the student when showing student work to the teacher. This is set exactly when supportsStudentWork is true.
Trait Implementations§
Source§impl Clone for StudentContext
impl Clone for StudentContext
Source§fn clone(&self) -> StudentContext
fn clone(&self) -> StudentContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StudentContext
impl Debug for StudentContext
Source§impl Default for StudentContext
impl Default for StudentContext
Source§fn default() -> StudentContext
fn default() -> StudentContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StudentContext
impl<'de> Deserialize<'de> for StudentContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for StudentContext
impl Serialize for StudentContext
impl Part for StudentContext
Auto Trait Implementations§
impl Freeze for StudentContext
impl RefUnwindSafe for StudentContext
impl Send for StudentContext
impl Sync for StudentContext
impl Unpin for StudentContext
impl UnwindSafe for StudentContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more