pub struct BatchAuthorizeUnsignedResponse { /* private fields */ }Expand description
WASM wrapper for cedarling::BatchAuthorizeResponse<Result<AuthorizeResult, BatchItemError>>.
Carries a shared batch_id (UUIDv7) alongside per-item results. Each result
is a BatchItemUnsignedResult — Cedar decision on is_ok(), per-item
build failure on error. results[i] corresponds to items[i].
Implementations§
Source§impl BatchAuthorizeUnsignedResponse
impl BatchAuthorizeUnsignedResponse
Sourcepub fn batch_id(&self) -> String
pub fn batch_id(&self) -> String
Shared correlation id stamped on every per-item decision log entry.
Sourcepub fn results(&self) -> Vec<BatchItemUnsignedResult>
pub fn results(&self) -> Vec<BatchItemUnsignedResult>
Per-item results in input order — each slot is a
BatchItemUnsignedResult.
Trait Implementations§
Source§impl From<BatchAuthorizeResponse<Result<AuthorizeResult, BatchItemError>>> for BatchAuthorizeUnsignedResponse
impl From<BatchAuthorizeResponse<Result<AuthorizeResult, BatchItemError>>> for BatchAuthorizeUnsignedResponse
Source§impl From<BatchAuthorizeUnsignedResponse> for JsValue
impl From<BatchAuthorizeUnsignedResponse> for JsValue
Source§fn from(value: BatchAuthorizeUnsignedResponse) -> Self
fn from(value: BatchAuthorizeUnsignedResponse) -> Self
Converts to this type from the input type.
Source§impl LongRefFromWasmAbi for BatchAuthorizeUnsignedResponse
impl LongRefFromWasmAbi for BatchAuthorizeUnsignedResponse
Source§type Abi = WasmPtr<WasmRefCell<BatchAuthorizeUnsignedResponse>>
type Abi = WasmPtr<WasmRefCell<BatchAuthorizeUnsignedResponse>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<BatchAuthorizeUnsignedResponse>
type Anchor = RcRef<BatchAuthorizeUnsignedResponse>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl RefFromWasmAbi for BatchAuthorizeUnsignedResponse
impl RefFromWasmAbi for BatchAuthorizeUnsignedResponse
Source§type Abi = WasmPtr<WasmRefCell<BatchAuthorizeUnsignedResponse>>
type Abi = WasmPtr<WasmRefCell<BatchAuthorizeUnsignedResponse>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<BatchAuthorizeUnsignedResponse>
type Anchor = RcRef<BatchAuthorizeUnsignedResponse>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for BatchAuthorizeUnsignedResponse
impl RefMutFromWasmAbi for BatchAuthorizeUnsignedResponse
Source§type Abi = WasmPtr<WasmRefCell<BatchAuthorizeUnsignedResponse>>
type Abi = WasmPtr<WasmRefCell<BatchAuthorizeUnsignedResponse>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<BatchAuthorizeUnsignedResponse>
type Anchor = RcRefMut<BatchAuthorizeUnsignedResponse>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiimpl SupportsConstructor for BatchAuthorizeUnsignedResponse
impl SupportsInstanceProperty for BatchAuthorizeUnsignedResponse
impl SupportsStaticProperty for BatchAuthorizeUnsignedResponse
Source§impl VectorFromWasmAbi for BatchAuthorizeUnsignedResponse
impl VectorFromWasmAbi for BatchAuthorizeUnsignedResponse
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: Self::Abi, ) -> Box<[BatchAuthorizeUnsignedResponse]>
Source§impl VectorIntoWasmAbi for BatchAuthorizeUnsignedResponse
impl VectorIntoWasmAbi for BatchAuthorizeUnsignedResponse
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[BatchAuthorizeUnsignedResponse]>) -> Self::Abi
Source§impl WasmDescribeVector for BatchAuthorizeUnsignedResponse
impl WasmDescribeVector for BatchAuthorizeUnsignedResponse
Auto Trait Implementations§
impl !Send for BatchAuthorizeUnsignedResponse
impl !Sync for BatchAuthorizeUnsignedResponse
impl Freeze for BatchAuthorizeUnsignedResponse
impl RefUnwindSafe for BatchAuthorizeUnsignedResponse
impl Unpin for BatchAuthorizeUnsignedResponse
impl UnsafeUnpin for BatchAuthorizeUnsignedResponse
impl UnwindSafe for BatchAuthorizeUnsignedResponse
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.