pub struct AgentPackageResource {
pub schema: String,
pub contribution_id: String,
pub format: String,
pub media_type: String,
pub data: Value,
}Expand description
Browser-safe content loaded for a contribution’s declared storage resource.
The resolved filesystem path is deliberately absent. Consumers address the content by contribution id and receive only bounded JSON or UTF-8 text.
Fields§
§schema: StringMust be RESOURCE_SCHEMA.
contribution_id: StringContribution that declared this resource.
format: Stringjson or text.
media_type: StringBest-effort media type for presentation.
data: ValueParsed JSON or a JSON string containing bounded UTF-8 text.
Trait Implementations§
Source§impl Clone for AgentPackageResource
impl Clone for AgentPackageResource
Source§fn clone(&self) -> AgentPackageResource
fn clone(&self) -> AgentPackageResource
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 AgentPackageResource
impl Debug for AgentPackageResource
Source§impl PartialEq for AgentPackageResource
impl PartialEq for AgentPackageResource
Source§impl Serialize for AgentPackageResource
impl Serialize for AgentPackageResource
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AgentPackageResource
Auto Trait Implementations§
impl Freeze for AgentPackageResource
impl RefUnwindSafe for AgentPackageResource
impl Send for AgentPackageResource
impl Sync for AgentPackageResource
impl Unpin for AgentPackageResource
impl UnsafeUnpin for AgentPackageResource
impl UnwindSafe for AgentPackageResource
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