pub struct CreateProjection { /* private fields */ }Expand description
The exact generated constructor facet.
Implementations§
Source§impl CreateProjection
impl CreateProjection
Sourcepub fn new(
enabled: bool,
fields: Vec<CreateFieldProjection>,
roles: BTreeMap<RoleId, CreateRoleProjection>,
) -> Result<Self, Diagnostic>
pub fn new( enabled: bool, fields: Vec<CreateFieldProjection>, roles: BTreeMap<RoleId, CreateRoleProjection>, ) -> Result<Self, Diagnostic>
Construct one exact constructor shape.
Sourcepub fn with_target_name(self, target_name: TargetIdentifier) -> Self
pub fn with_target_name(self, target_name: TargetIdentifier) -> Self
Attach the explicit generated create-input type name.
Sourcepub const fn target_name(&self) -> Option<&TargetIdentifier>
pub const fn target_name(&self) -> Option<&TargetIdentifier>
Return the generated create-input type name, when construction is exposed.
Sourcepub fn fields(&self) -> &[CreateFieldProjection]
pub fn fields(&self) -> &[CreateFieldProjection]
Return owned-attribute inputs in semantic order.
Sourcepub const fn roles(&self) -> &BTreeMap<RoleId, CreateRoleProjection>
pub const fn roles(&self) -> &BTreeMap<RoleId, CreateRoleProjection>
Return active role inputs.
Trait Implementations§
Source§impl Clone for CreateProjection
impl Clone for CreateProjection
Source§fn clone(&self) -> CreateProjection
fn clone(&self) -> CreateProjection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateProjection
impl Debug for CreateProjection
impl Eq for CreateProjection
Source§impl PartialEq for CreateProjection
impl PartialEq for CreateProjection
Source§impl Serialize for CreateProjection
impl Serialize for CreateProjection
impl StructuralPartialEq for CreateProjection
Auto Trait Implementations§
impl Freeze for CreateProjection
impl RefUnwindSafe for CreateProjection
impl Send for CreateProjection
impl Sync for CreateProjection
impl Unpin for CreateProjection
impl UnsafeUnpin for CreateProjection
impl UnwindSafe for CreateProjection
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