pub struct DefaultRequest { /* private fields */ }Expand description
One explicit request made to a caller-owned default policy.
Implementations§
Source§impl DefaultRequest
impl DefaultRequest
Sourcepub const fn kind(&self) -> DefaultKind
pub const fn kind(&self) -> DefaultKind
Returns the omitted semantic field.
Sourcepub const fn location(&self) -> &DefaultLocation
pub const fn location(&self) -> &DefaultLocation
Returns where the default would apply.
Sourcepub fn source_name(&self) -> Option<&str>
pub fn source_name(&self) -> Option<&str>
Returns the source resource name needed by target-path defaults.
Sourcepub const fn anchor(&self) -> SourceSpan
pub const fn anchor(&self) -> SourceSpan
Returns a nearby source span for diagnostics and provenance.
Sourcepub const fn is_sensitive(&self) -> bool
pub const fn is_sensitive(&self) -> bool
Reports whether interpolation inserted sensitive content into the request.
Trait Implementations§
Source§impl Clone for DefaultRequest
impl Clone for DefaultRequest
Source§fn clone(&self) -> DefaultRequest
fn clone(&self) -> DefaultRequest
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 DefaultRequest
impl Debug for DefaultRequest
impl Eq for DefaultRequest
Source§impl PartialEq for DefaultRequest
impl PartialEq for DefaultRequest
impl StructuralPartialEq for DefaultRequest
Auto Trait Implementations§
impl Freeze for DefaultRequest
impl RefUnwindSafe for DefaultRequest
impl Send for DefaultRequest
impl Sync for DefaultRequest
impl Unpin for DefaultRequest
impl UnsafeUnpin for DefaultRequest
impl UnwindSafe for DefaultRequest
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