pub struct Fragment {
pub defs: Vec<FragDef>,
pub usings: Vec<FragUsing>,
pub refs: Vec<FragRef>,
pub names: Vec<FragName>,
pub registrations: Vec<FragRegistration>,
pub publishes: Vec<FragPublish>,
pub handler_registrations: Vec<FragHandlerRegistration>,
}Expand description
Represents Fragment.
Fields§
§defs: Vec<FragDef>The defs value.
usings: Vec<FragUsing>The usings value.
refs: Vec<FragRef>The refs value.
names: Vec<FragName>Appended LAST, after refs. Always serialized, like its
three siblings: a fragment’s top-level arrays are a fixed shape, and
only the fields INSIDE a record follow the omit-when-empty rule.
registrations: Vec<FragRegistration>The file’s two-type-argument DI service registrations – see
FragRegistration. Appended LAST, after names, and omitted when
empty (unlike its four siblings above, which pre-date the
omit-when-empty convention): a file recording none serializes exactly
as it did before this field existed.
publishes: Vec<FragPublish>The file’s message-bus publish-site facts – see FragPublish.
Appended LAST, after registrations, and omitted when empty.
Joined the schema with the v20 cache bump: a v19 fragment read back
carries none, so every publish-site fact from an unchanged file
would silently disappear from a reused cache.
handler_registrations: Vec<FragHandlerRegistration>The file’s one-type-argument handler registrations, appended LAST
after publishes and omitted when empty. Joined the schema with the
v21 cache bump: a v20 fragment read back carries none, so a
repository’s own handler vocabulary would be underivable from a
reused cache.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fragment
impl<'de> Deserialize<'de> for Fragment
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>,
Source§impl From<Fragment> for AnyFragment
impl From<Fragment> for AnyFragment
impl StructuralPartialEq for Fragment
Auto Trait Implementations§
impl Freeze for Fragment
impl RefUnwindSafe for Fragment
impl Send for Fragment
impl Sync for Fragment
impl Unpin for Fragment
impl UnsafeUnpin for Fragment
impl UnwindSafe for Fragment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more