pub struct LinkType {
pub rel: String,
pub href: String,
pub method: String,
pub target_schema: Option<String>,
pub schema: String,
}
Fields
rel: String
Desc: As with an HTML ‘rel’ attribute, this describes the type of link.
href: String
Desc: This property contains a fully-qualified URL that can be called to retrieve the linked resource or perform the linked action.
method: String
Desc: The HTTP method that should be used when accessing the URL defined in ‘href’.
target_schema: Option<String>
Desc: For GETs, this is a URL representing the schema that the response should conform to.
schema: String
Desc: For HTTP methods that can receive bodies (POST and PUT), this is a URL representing the schema that the body should conform to.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for LinkType
impl<'de> Deserialize<'de> for LinkType
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for LinkType
impl Send for LinkType
impl Sync for LinkType
impl Unpin for LinkType
impl UnwindSafe for LinkType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more