pub struct ResourceId {
pub resource_type: &'static str,
pub id: String,
}Expand description
A bare { type, id } resource identifier, used to point a create
request’s relationships at an existing resource.
Fields§
§resource_type: &'static str§id: StringTrait Implementations§
Source§impl Clone for ResourceId
impl Clone for ResourceId
Source§impl Debug for ResourceId
impl Debug for ResourceId
Source§impl Deserialize<'static> for ResourceId
impl Deserialize<'static> for ResourceId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ResourceId
impl RefUnwindSafe for ResourceId
impl Send for ResourceId
impl Sync for ResourceId
impl Unpin for ResourceId
impl UnsafeUnpin for ResourceId
impl UnwindSafe for ResourceId
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