Struct svc_assets::rest::structs::AssetGroup
source · pub struct AssetGroup {
pub id: String,
pub name: Option<String>,
pub owner: String,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub delegatee: Option<String>,
pub assets: Vec<String>,
}
Expand description
A struct representing a group of assets.
The asset group can be delegated to another operator.
Fields§
§id: String
UUID of the asset group.
name: Option<String>
§owner: String
The UUID of an Operator
struct.
created_at: Option<DateTime<Utc>>
§updated_at: Option<DateTime<Utc>>
§delegatee: Option<String>
The UUID of an Operator
struct, if available.
assets: Vec<String>
The UUIDs of the assets in the group.
Implementations§
source§impl AssetGroup
impl AssetGroup
Trait Implementations§
source§impl Clone for AssetGroup
impl Clone for AssetGroup
source§fn clone(&self) -> AssetGroup
fn clone(&self) -> AssetGroup
Returns a copy of the value. Read more
1.0.0 · 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 AssetGroup
impl Debug for AssetGroup
source§impl<'de> Deserialize<'de> for AssetGroup
impl<'de> Deserialize<'de> for AssetGroup
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 IntoParams for AssetGroup
impl IntoParams for AssetGroup
source§impl PartialEq<AssetGroup> for AssetGroup
impl PartialEq<AssetGroup> for AssetGroup
source§fn eq(&self, other: &AssetGroup) -> bool
fn eq(&self, other: &AssetGroup) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AssetGroup
impl Serialize for AssetGroup
source§impl<'__s> ToSchema<'__s> for AssetGroup
impl<'__s> ToSchema<'__s> for AssetGroup
impl Eq for AssetGroup
impl StructuralEq for AssetGroup
impl StructuralPartialEq for AssetGroup
Auto Trait Implementations§
impl RefUnwindSafe for AssetGroup
impl Send for AssetGroup
impl Sync for AssetGroup
impl Unpin for AssetGroup
impl UnwindSafe for AssetGroup
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§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