Struct sep2_common::packages::identification::Resource
source · pub struct Resource {
pub href: Option<String>,
}
Expand description
A resource is an addressable unit of information, either a collection (List) or instance of an object (identifiedObject, or simply, Resource)
Fields§
§href: Option<String>
A reference to the resource address (URI). Required in a response to a GET, ignored otherwise.
Trait Implementations§
source§impl PartialEq<Resource> for Resource
impl PartialEq<Resource> for Resource
source§impl YaSerialize for Resource
impl YaSerialize for Resource
fn name() -> &'static strwhere Self: Sized,
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>where Self: Sized,
fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace ) -> Result<(Vec<OwnedAttribute>, Namespace), String>where Self: Sized,
impl Eq for Resource
impl StructuralEq for Resource
impl StructuralPartialEq for Resource
Auto Trait Implementations§
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnwindSafe for Resource
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