pub struct PermissionReviewResponse { /* private fields */ }Expand description
Host response for one pending permission review request.
Implementations§
Source§impl PermissionReviewResponse
impl PermissionReviewResponse
Sourcepub fn allow(
approval_id: impl Into<String>,
fingerprint: impl Into<String>,
rationale: impl Into<String>,
) -> Self
pub fn allow( approval_id: impl Into<String>, fingerprint: impl Into<String>, rationale: impl Into<String>, ) -> Self
Creates a one-shot approval response for an exact request.
Sourcepub fn allow_with_scope(
approval_id: impl Into<String>,
fingerprint: impl Into<String>,
scope: ApprovalScope,
rationale: impl Into<String>,
) -> Self
pub fn allow_with_scope( approval_id: impl Into<String>, fingerprint: impl Into<String>, scope: ApprovalScope, rationale: impl Into<String>, ) -> Self
Creates an approval response for an exact request with an explicit scope.
Sourcepub fn deny(
approval_id: impl Into<String>,
fingerprint: impl Into<String>,
rationale: impl Into<String>,
) -> Self
pub fn deny( approval_id: impl Into<String>, fingerprint: impl Into<String>, rationale: impl Into<String>, ) -> Self
Creates a denial response for an exact request.
Sourcepub fn with_user_note(self, user_note: Option<String>) -> Self
pub fn with_user_note(self, user_note: Option<String>) -> Self
Attaches an optional user-authored note to this review response.
Blank or whitespace-only notes are normalized to None.
Trait Implementations§
Source§impl Clone for PermissionReviewResponse
impl Clone for PermissionReviewResponse
Source§impl Debug for PermissionReviewResponse
impl Debug for PermissionReviewResponse
impl Eq for PermissionReviewResponse
Source§impl PartialEq for PermissionReviewResponse
impl PartialEq for PermissionReviewResponse
impl StructuralPartialEq for PermissionReviewResponse
Auto Trait Implementations§
impl Forget for PermissionReviewResponse
impl Freeze for PermissionReviewResponse
impl Move for PermissionReviewResponse
impl RefUnwindSafe for PermissionReviewResponse
impl Send for PermissionReviewResponsewhere
RawVecInner: Send,
impl Sync for PermissionReviewResponsewhere
RawVecInner: Sync,
impl Unpin for PermissionReviewResponse
impl UnsafeUnpin for PermissionReviewResponse
impl UnwindSafe for PermissionReviewResponsewhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.