pub enum Scope {
Show 22 variants Announcement, AnnouncementReadonly, Course, CourseReadonly, CourseworkMe, CourseworkMeReadonly, CourseworkStudent, CourseworkStudentReadonly, Courseworkmaterial, CourseworkmaterialReadonly, GuardianlinkMeReadonly, GuardianlinkStudent, GuardianlinkStudentReadonly, ProfileEmail, ProfilePhoto, PushNotification, Roster, RosterReadonly, StudentSubmissionMeReadonly, StudentSubmissionStudentReadonly, Topic, TopicReadonly,
}
Expand description

Identifies the an OAuth2 authorization scope. A scope is needed when requesting an authorization token.

Variants§

§

Announcement

View and manage announcements in Google Classroom

§

AnnouncementReadonly

View announcements in Google Classroom

§

Course

See, edit, create, and permanently delete your Google Classroom classes

§

CourseReadonly

View your Google Classroom classes

§

CourseworkMe

See, create and edit coursework items including assignments, questions, and grades

§

CourseworkMeReadonly

View your course work and grades in Google Classroom

§

CourseworkStudent

Manage course work and grades for students in the Google Classroom classes you teach and view the course work and grades for classes you administer

§

CourseworkStudentReadonly

View course work and grades for students in the Google Classroom classes you teach or administer

§

Courseworkmaterial

See, edit, and create classwork materials in Google Classroom

§

CourseworkmaterialReadonly

See all classwork materials for your Google Classroom classes

§

GuardianlinkMeReadonly

View your Google Classroom guardians

§

GuardianlinkStudent

View and manage guardians for students in your Google Classroom classes

§

GuardianlinkStudentReadonly

View guardians for students in your Google Classroom classes

§

ProfileEmail

View the email addresses of people in your classes

§

ProfilePhoto

View the profile photos of people in your classes

§

PushNotification

Receive notifications about your Google Classroom data

§

Roster

Manage your Google Classroom class rosters

§

RosterReadonly

View your Google Classroom class rosters

§

StudentSubmissionMeReadonly

View your course work and grades in Google Classroom

§

StudentSubmissionStudentReadonly

View course work and grades for students in the Google Classroom classes you teach or administer

§

Topic

See, create, and edit topics in Google Classroom

§

TopicReadonly

View topics in Google Classroom

Trait Implementations§

source§

impl AsRef<str> for Scope

source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Default for Scope

source§

fn default() -> Scope

Returns the “default value” for a type. Read more
source§

impl Hash for Scope

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq<Scope> for Scope

source§

fn eq(&self, other: &Scope) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for Scope

source§

impl StructuralEq for Scope

source§

impl StructuralPartialEq for Scope

Auto Trait Implementations§

§

impl RefUnwindSafe for Scope

§

impl Send for Scope

§

impl Sync for Scope

§

impl Unpin for Scope

§

impl UnwindSafe for Scope

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more