pub struct UnavailableForLegalReasons<T = ()>(pub T);Expand description
451 Unavailable For Legal Reasons
Tuple Fields§
§0: TTrait Implementations§
Source§fn clone(&self) -> UnavailableForLegalReasons<T>
fn clone(&self) -> UnavailableForLegalReasons<T>
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§fn default() -> UnavailableForLegalReasons<T>
fn default() -> UnavailableForLegalReasons<T>
Returns the “default value” for a type. Read more
Source§fn from(err: UnavailableForLegalReasons<T>) -> Self
fn from(err: UnavailableForLegalReasons<T>) -> Self
Converts to this type from the input type.
Source§const STATUS_CODE: StatusCode = StatusCode::UNAVAILABLE_FOR_LEGAL_REASONS
const STATUS_CODE: StatusCode = StatusCode::UNAVAILABLE_FOR_LEGAL_REASONS
The status code associated with type.
type WithInner<R> = UnavailableForLegalReasons<R>
Source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Convert this status wrapper into its inner value.
Source§fn into_set<E>(self) -> ApiResponse<E>
fn into_set<E>(self) -> ApiResponse<E>
Convert this status wrapper into an [
ApiErrorSet] with the
given inner value type. (into can be used as well)Auto Trait Implementations§
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