pub struct Fragment {
pub defs: Vec<FragDef>,
pub usings: Vec<FragUsing>,
pub refs: Vec<FragRef>,
pub names: Vec<FragName>,
pub registrations: Vec<FragRegistration>,
}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.
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>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more
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> ⓘ
Converts
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> ⓘ
Converts
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