pub struct FixtureScene {
pub schema: u32,
pub scene: SceneSpec,
pub expected_trace: Option<Vec<String>>,
pub expected_kinds: Vec<String>,
}Expand description
픽스처 JSON 한 장.
Fields§
§schema: u32스키마 버전.
scene: SceneSpec장면.
expected_trace: Option<Vec<String>>기대 추적 줄. None 이면 시험이 직접 계산한다.
expected_kinds: Vec<String>기대 replay kind 순서.
Implementations§
Source§impl FixtureScene
impl FixtureScene
Sourcepub fn from_scene(scene: SceneSpec) -> Self
pub fn from_scene(scene: SceneSpec) -> Self
SceneSpec 에서 만든다. expected_trace 는 비운다.
Sourcepub fn to_json_value(&self) -> String
pub fn to_json_value(&self) -> String
JSON 객체로 직렬화한다. 외부 crate 없이 손으로 쓴다.
Trait Implementations§
Source§impl Clone for FixtureScene
impl Clone for FixtureScene
Source§impl Debug for FixtureScene
impl Debug for FixtureScene
Source§impl PartialEq for FixtureScene
impl PartialEq for FixtureScene
impl StructuralPartialEq for FixtureScene
Auto Trait Implementations§
impl Forget for FixtureScene
impl Freeze for FixtureScene
impl Move for FixtureScene
impl RefUnwindSafe for FixtureScene
impl Send for FixtureScene
impl Sync for FixtureScene
impl Unpin for FixtureScene
impl UnsafeUnpin for FixtureScene
impl UnwindSafe for FixtureScene
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.