pub struct CourseAlias {
pub alias: Option<String>,
}
Expand description
Alternative identifier for a course. An alias uniquely identifies a course. It must be unique within one of the following scopes: * domain: A domain-scoped alias is visible to all users within the alias creator’s domain and can be created only by a domain admin. A domain-scoped alias is often used when a course has an identifier external to Classroom. * project: A project-scoped alias is visible to any request from an application using the Developer Console project ID that created the alias and can be created by any project. A project-scoped alias is often used when an application has alternative identifiers. A random value can also be used to avoid duplicate courses in the event of transmission failures, as retrying a request will return ALREADY_EXISTS
if a previous one has succeeded.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- aliases create courses (request|response)
Fields§
§alias: Option<String>
Alias string. The format of the string indicates the desired alias scoping. * d:
indicates a domain-scoped alias. Example: d:math_101
* p:
indicates a project-scoped alias. Example: p:abc123
This field has a maximum length of 256 characters.
Trait Implementations§
Source§impl Clone for CourseAlias
impl Clone for CourseAlias
Source§fn clone(&self) -> CourseAlias
fn clone(&self) -> CourseAlias
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CourseAlias
impl Debug for CourseAlias
Source§impl Default for CourseAlias
impl Default for CourseAlias
Source§fn default() -> CourseAlias
fn default() -> CourseAlias
Source§impl<'de> Deserialize<'de> for CourseAlias
impl<'de> Deserialize<'de> for CourseAlias
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>,
Source§impl Serialize for CourseAlias
impl Serialize for CourseAlias
impl RequestValue for CourseAlias
impl ResponseResult for CourseAlias
Auto Trait Implementations§
impl Freeze for CourseAlias
impl RefUnwindSafe for CourseAlias
impl Send for CourseAlias
impl Sync for CourseAlias
impl Unpin for CourseAlias
impl UnwindSafe for CourseAlias
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more