pub struct Project {
pub id: ProjectId,
pub name: ProjectName,
pub description: Option<ProjectDescription>,
pub groups: Vec<Group>,
}Expand description
Represents the metadata associated with a 3D model project.
Fields§
§id: ProjectId§name: ProjectNameA human readable name for the project.
description: Option<ProjectDescription>Optional additional context about the project.
groups: Vec<Group>The groups that the project is a member of.
Trait Implementations§
Source§impl Resource for Project
impl Resource for Project
fn resource_type(&self) -> ResourceType
Source§impl ResourceInstance for Project
impl ResourceInstance for Project
Source§fn resource_identifier(&self) -> ResourceIdentifier
fn resource_identifier(&self) -> ResourceIdentifier
Identifies the specific resource instance.
Source§fn groups(&self) -> Option<Vec<Group>>
fn groups(&self) -> Option<Vec<Group>>
The groups that the resource belongs to. Some resource types won’t be
associated with groups, in this case this should return None. Currently,
if a user is part of the same group they are allowed do action the
resource.
Source§fn user_emails(&self) -> Option<Vec<EmailAddress>>
fn user_emails(&self) -> Option<Vec<EmailAddress>>
The email addresses of the users that have access to the resource. Some
resource types won’t be associated with users, in this case this
should return None.
impl StructuralPartialEq for Project
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnsafeUnpin for Project
impl UnwindSafe for Project
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
Converts
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> ⓘ
Converts
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