pub struct ViewFieldRef<'a> { /* private fields */ }Expand description
A borrowed field exposed by a descriptor-validated view.
Implementations§
Source§impl<'a> ViewFieldRef<'a>
impl<'a> ViewFieldRef<'a>
Sourcepub const fn visibility(&self) -> ContextVisibility
pub const fn visibility(&self) -> ContextVisibility
Returns the descriptor-approved field visibility.
Sourcepub fn value(&self) -> ViewValueRef<'a>
pub fn value(&self) -> ViewValueRef<'a>
Returns the safe borrowed value for this field.
Secret-presence fields always return ViewValueRef::Redacted.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ViewFieldRef<'a>
impl<'a> RefUnwindSafe for ViewFieldRef<'a>
impl<'a> Send for ViewFieldRef<'a>
impl<'a> Sync for ViewFieldRef<'a>
impl<'a> Unpin for ViewFieldRef<'a>
impl<'a> UnsafeUnpin for ViewFieldRef<'a>
impl<'a> UnwindSafe for ViewFieldRef<'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