pub struct BlResourceRequest {
pub resource_name: ResourceName,
pub ven_id: ObjectId,
pub client_id: Option<ClientId>,
pub targets: Vec<Target>,
pub attributes: Option<Vec<ValuesMap>>,
}Expand description
A resource as described by business logic.
Fields§
§resource_name: ResourceNameName, unique within its VEN.
ven_id: ObjectIdThe VEN this resource belongs to.
client_id: Option<ClientId>The client that owns it.
Required in 3.1.0 and removed in 3.1.1, because venID already determines it. Optional here
so that a 3.1.0 peer’s body parses and a 3.1.0 peer still receives the field it expects; the
VTN derives ownership from venID either way.
targets: Vec<Target>Targets granted to this resource. Only business logic may write these.
attributes: Option<Vec<ValuesMap>>Attributes describing the resource.
Trait Implementations§
Source§impl Clone for BlResourceRequest
impl Clone for BlResourceRequest
Source§fn clone(&self) -> BlResourceRequest
fn clone(&self) -> BlResourceRequest
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§impl Debug for BlResourceRequest
impl Debug for BlResourceRequest
Source§impl<'de> Deserialize<'de> for BlResourceRequest
impl<'de> Deserialize<'de> for BlResourceRequest
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 PartialEq for BlResourceRequest
impl PartialEq for BlResourceRequest
Source§impl Serialize for BlResourceRequest
impl Serialize for BlResourceRequest
impl StructuralPartialEq for BlResourceRequest
Auto Trait Implementations§
impl Freeze for BlResourceRequest
impl RefUnwindSafe for BlResourceRequest
impl Send for BlResourceRequest
impl Sync for BlResourceRequest
impl Unpin for BlResourceRequest
impl UnsafeUnpin for BlResourceRequest
impl UnwindSafe for BlResourceRequest
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more