Struct svc_storage::resources::base::simple_resource::GenericResourceResult
source · pub struct GenericResourceResult<T, U>where
T: SimpleResource<U>,
U: GrpcDataObjectType,{
pub phantom: PhantomData<U>,
pub resource: Option<T>,
pub validation_result: ValidationResult,
}
Expand description
Generic resource result wrapper struct used to implement our generic traits
Fields§
§phantom: PhantomData<U>
PhantomData
needed to provide the GrpcDataObjectType
during implementation
resource: Option<T>
ResourceObject
with resource id and data
validation_result: ValidationResult
ValidationResult
returned from the update action
Trait Implementations§
source§impl<T, U> Debug for GenericResourceResult<T, U>
impl<T, U> Debug for GenericResourceResult<T, U>
source§impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
source§fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
Converts to this type from the input type.
source§impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
source§fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
Converts to this type from the input type.
source§impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
source§fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
Converts to this type from the input type.
source§impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
source§fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
Converts to this type from the input type.
source§impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
source§fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
Converts to this type from the input type.
source§impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
source§fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
Converts to this type from the input type.
source§impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
source§fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
Converts to this type from the input type.
source§impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
source§fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
Converts to this type from the input type.
source§impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
source§fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
Converts to this type from the input type.
source§impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
source§fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
Converts to this type from the input type.
source§impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
source§fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
Converts to this type from the input type.
source§impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
impl From<GenericResourceResult<ResourceObject<Data>, Data>> for Response
source§fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
fn from(obj: GenericResourceResult<ResourceObject<Data>, Data>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T, U> RefUnwindSafe for GenericResourceResult<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for GenericResourceResult<T, U>where
T: Send,
impl<T, U> Sync for GenericResourceResult<T, U>where
T: Sync,
impl<T, U> Unpin for GenericResourceResult<T, U>
impl<T, U> UnwindSafe for GenericResourceResult<T, U>where
T: UnwindSafe,
U: 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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request