#[non_exhaustive]pub struct NewCampPrincipal {
pub bound_to: PrincipalId,
pub desired_id: String,
}Expand description
Provision input — what callers hand to CampAuthority::provision.
desired_id becomes the bare half of camp:<desired_id>. The authority
refuses if a camp with that id already exists.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bound_to: PrincipalId§desired_id: StringImplementations§
Source§impl NewCampPrincipal
impl NewCampPrincipal
pub fn new(bound_to: PrincipalId, desired_id: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for NewCampPrincipal
impl Clone for NewCampPrincipal
Source§fn clone(&self) -> NewCampPrincipal
fn clone(&self) -> NewCampPrincipal
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 NewCampPrincipal
impl Debug for NewCampPrincipal
impl Eq for NewCampPrincipal
Source§impl PartialEq for NewCampPrincipal
impl PartialEq for NewCampPrincipal
impl StructuralPartialEq for NewCampPrincipal
Auto Trait Implementations§
impl Freeze for NewCampPrincipal
impl RefUnwindSafe for NewCampPrincipal
impl Send for NewCampPrincipal
impl Sync for NewCampPrincipal
impl Unpin for NewCampPrincipal
impl UnsafeUnpin for NewCampPrincipal
impl UnwindSafe for NewCampPrincipal
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