Struct svc_assets::rest::structs::Basics
source · pub struct Basics {
pub id: String,
pub name: Option<String>,
pub group_id: Option<String>,
pub owner: String,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub whitelist: Vec<String>,
pub status: AssetStatus,
}
Expand description
Attributes that are common to all assets.
Fields§
§id: String
UUID of the asset.
name: Option<String>
§group_id: Option<String>
The UUID of an AssetGroup
struct, if available.
owner: String
The UUID of an Operator
struct.
created_at: DateTime<Utc>
§updated_at: DateTime<Utc>
§whitelist: Vec<String>
A list of UUIDs of Operator
structs.
If the vector is empty, the asset is available to everyone.
Otherwise, the asset is only available to the clients in the vector.
status: AssetStatus
Trait Implementations§
source§impl<'de> Deserialize<'de> for Basics
impl<'de> Deserialize<'de> for Basics
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 Basics
impl IntoParams for Basics
source§impl PartialEq<Basics> for Basics
impl PartialEq<Basics> for Basics
source§impl<'__s> ToSchema<'__s> for Basics
impl<'__s> ToSchema<'__s> for Basics
impl Eq for Basics
impl StructuralEq for Basics
impl StructuralPartialEq for Basics
Auto Trait Implementations§
impl RefUnwindSafe for Basics
impl Send for Basics
impl Sync for Basics
impl Unpin for Basics
impl UnwindSafe for Basics
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