pub struct TsFragmentDef {
pub name: String,
pub kind: String,
pub line: usize,
pub end_line: usize,
}Expand description
One exported top-level declaration, in the shape the fragment serializes:
name, kind, line, in that order.
Fields§
§name: StringThe name value.
kind: StringThe kind value.
line: usizeThe line value.
end_line: usizeThe end line value.
Trait Implementations§
Source§impl Clone for TsFragmentDef
impl Clone for TsFragmentDef
Source§impl Debug for TsFragmentDef
impl Debug for TsFragmentDef
Source§impl<'de> Deserialize<'de> for TsFragmentDef
impl<'de> Deserialize<'de> for TsFragmentDef
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 PartialEq for TsFragmentDef
impl PartialEq for TsFragmentDef
Source§impl Serialize for TsFragmentDef
impl Serialize for TsFragmentDef
impl StructuralPartialEq for TsFragmentDef
Auto Trait Implementations§
impl Freeze for TsFragmentDef
impl RefUnwindSafe for TsFragmentDef
impl Send for TsFragmentDef
impl Sync for TsFragmentDef
impl Unpin for TsFragmentDef
impl UnsafeUnpin for TsFragmentDef
impl UnwindSafe for TsFragmentDef
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