pub struct EntitiesBuilder<'a> { /* private fields */ }
Expand description
A request builder used to construct a cedar_policy::Entities.
Implementations§
Source§impl<'a> EntitiesBuilder<'a>
impl<'a> EntitiesBuilder<'a>
Sourcepub fn with_entity<E: CedarEntity>(
self,
entity: &Entity<E>,
) -> Result<Self, EntitiesBuilderError>
pub fn with_entity<E: CedarEntity>( self, entity: &Entity<E>, ) -> Result<Self, EntitiesBuilderError>
Add an entity to the builder. See Self::add_entity for a mut ref builder method.
Sourcepub fn add_entity<E: CedarEntity>(
&mut self,
entity: &Entity<E>,
) -> Result<&mut Self, EntitiesBuilderError>
pub fn add_entity<E: CedarEntity>( &mut self, entity: &Entity<E>, ) -> Result<&mut Self, EntitiesBuilderError>
Add an entity to the builder. See Self::with_entity for a owned builder method.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for EntitiesBuilder<'a>
impl<'a> RefUnwindSafe for EntitiesBuilder<'a>
impl<'a> Send for EntitiesBuilder<'a>
impl<'a> Sync for EntitiesBuilder<'a>
impl<'a> Unpin for EntitiesBuilder<'a>
impl<'a> UnwindSafe for EntitiesBuilder<'a>
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