pub struct EntityBuilder<E, S: State = Empty>where
E: CedarEntity,{ /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<E, S: State> EntityBuilder<E, S>where
E: CedarEntity,
impl<E, S: State> EntityBuilder<E, S>where
E: CedarEntity,
Source§impl<E: CedarEntity, S: State> EntityBuilder<E, S>
impl<E: CedarEntity, S: State> EntityBuilder<E, S>
Trait Implementations§
Source§impl<E: CedarEntity, S: IsComplete> From<EntityBuilder<E, S>> for Entity<E>
impl<E: CedarEntity, S: IsComplete> From<EntityBuilder<E, S>> for Entity<E>
Source§fn from(value: EntityBuilder<E, S>) -> Self
fn from(value: EntityBuilder<E, S>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E, S> Freeze for EntityBuilder<E, S>
impl<E, S> RefUnwindSafe for EntityBuilder<E, S>
impl<E, S> Send for EntityBuilder<E, S>
impl<E, S> Sync for EntityBuilder<E, S>
impl<E, S> Unpin for EntityBuilder<E, S>
impl<E, S> UnwindSafe for EntityBuilder<E, S>
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> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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