pub struct EndpointResult<T> {
pub data: Option<T>,
pub auth: Option<AuthInfo>,
pub lease_id: String,
pub lease_duration: u32,
pub renewable: bool,
pub request_id: String,
pub warnings: Option<Vec<String>>,
pub wrap_info: Option<WrapInfo>,
}
Expand description
Represents the wrapper that mosts responses from the Vault API are wrapped
in. It contains data about the response like wrapping info, warnings, and
details about any contained leases. The actual response content is contained
in the data
field.
Most endpoints are configured to pass their responses through [strip] in order to strip the result and return the enclosed response. Any warnings are automatically logged accordingly.
Fields§
§data: Option<T>
§auth: Option<AuthInfo>
§lease_id: String
§lease_duration: u32
§renewable: bool
§request_id: String
§warnings: Option<Vec<String>>
§wrap_info: Option<WrapInfo>
Trait Implementations§
source§impl<T: Debug> Debug for EndpointResult<T>
impl<T: Debug> Debug for EndpointResult<T>
source§impl<'de, T> Deserialize<'de> for EndpointResult<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for EndpointResult<T>where
T: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: DeserializeOwned + Send + Sync> Wrapper for EndpointResult<T>
impl<T: DeserializeOwned + Send + Sync> Wrapper for EndpointResult<T>
Auto Trait Implementations§
impl<T> Freeze for EndpointResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for EndpointResult<T>where
T: RefUnwindSafe,
impl<T> Send for EndpointResult<T>where
T: Send,
impl<T> Sync for EndpointResult<T>where
T: Sync,
impl<T> Unpin for EndpointResult<T>where
T: Unpin,
impl<T> UnwindSafe for EndpointResult<T>where
T: 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