pub struct HostedDescriptor {
pub id: SourceId,
pub document: Embedded<SourceDescriptor>,
}Expand description
A rustev.source/1 descriptor carried verbatim with its SourceId
(3.10.1). The id must be the identity of exactly these bytes.
Fields§
§id: SourceId§document: Embedded<SourceDescriptor>Implementations§
Source§impl HostedDescriptor
impl HostedDescriptor
pub fn new(descriptor: &SourceDescriptor) -> Result<Self, DocumentError>
Trait Implementations§
Source§impl Clone for HostedDescriptor
impl Clone for HostedDescriptor
Source§impl Debug for HostedDescriptor
impl Debug for HostedDescriptor
Source§impl<'de> Deserialize<'de> for HostedDescriptor
impl<'de> Deserialize<'de> for HostedDescriptor
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 JsonSchema for HostedDescriptor
impl JsonSchema for HostedDescriptor
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for HostedDescriptor
impl PartialEq for HostedDescriptor
Source§impl Serialize for HostedDescriptor
impl Serialize for HostedDescriptor
impl StructuralPartialEq for HostedDescriptor
Auto Trait Implementations§
impl Freeze for HostedDescriptor
impl RefUnwindSafe for HostedDescriptor
impl Send for HostedDescriptor
impl Sync for HostedDescriptor
impl Unpin for HostedDescriptor
impl UnsafeUnpin for HostedDescriptor
impl UnwindSafe for HostedDescriptor
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