pub struct ObjectSetMaterialParamsPbrBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> ObjectSetMaterialParamsPbrBuilder<S>
impl<S: State> ObjectSetMaterialParamsPbrBuilder<S>
Sourcepub fn build(self) -> ObjectSetMaterialParamsPbrwhere
S: IsComplete,
pub fn build(self) -> ObjectSetMaterialParamsPbrwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn object_id(
self,
value: Uuid,
) -> ObjectSetMaterialParamsPbrBuilder<SetObjectId<S>>where
S::ObjectId: IsUnset,
pub fn object_id(
self,
value: Uuid,
) -> ObjectSetMaterialParamsPbrBuilder<SetObjectId<S>>where
S::ObjectId: IsUnset,
Required.
Which object to change
Sourcepub fn color(
self,
value: Color,
) -> ObjectSetMaterialParamsPbrBuilder<SetColor<S>>where
S::Color: IsUnset,
pub fn color(
self,
value: Color,
) -> ObjectSetMaterialParamsPbrBuilder<SetColor<S>>where
S::Color: IsUnset,
Required.
Color of the new material
Sourcepub fn metalness(
self,
value: f32,
) -> ObjectSetMaterialParamsPbrBuilder<SetMetalness<S>>where
S::Metalness: IsUnset,
pub fn metalness(
self,
value: f32,
) -> ObjectSetMaterialParamsPbrBuilder<SetMetalness<S>>where
S::Metalness: IsUnset,
Required.
Metalness of the new material
Sourcepub fn roughness(
self,
value: f32,
) -> ObjectSetMaterialParamsPbrBuilder<SetRoughness<S>>where
S::Roughness: IsUnset,
pub fn roughness(
self,
value: f32,
) -> ObjectSetMaterialParamsPbrBuilder<SetRoughness<S>>where
S::Roughness: IsUnset,
Required.
Roughness of the new material
Sourcepub fn ambient_occlusion(
self,
value: f32,
) -> ObjectSetMaterialParamsPbrBuilder<SetAmbientOcclusion<S>>where
S::AmbientOcclusion: IsUnset,
pub fn ambient_occlusion(
self,
value: f32,
) -> ObjectSetMaterialParamsPbrBuilder<SetAmbientOcclusion<S>>where
S::AmbientOcclusion: IsUnset,
Required.
Ambient Occlusion of the new material
Sourcepub fn backface_color(
self,
value: Color,
) -> ObjectSetMaterialParamsPbrBuilder<SetBackfaceColor<S>>where
S::BackfaceColor: IsUnset,
pub fn backface_color(
self,
value: Color,
) -> ObjectSetMaterialParamsPbrBuilder<SetBackfaceColor<S>>where
S::BackfaceColor: IsUnset,
Sourcepub fn maybe_backface_color(
self,
value: Option<Color>,
) -> ObjectSetMaterialParamsPbrBuilder<SetBackfaceColor<S>>where
S::BackfaceColor: IsUnset,
pub fn maybe_backface_color(
self,
value: Option<Color>,
) -> ObjectSetMaterialParamsPbrBuilder<SetBackfaceColor<S>>where
S::BackfaceColor: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for ObjectSetMaterialParamsPbrBuilder<S>
impl<S> RefUnwindSafe for ObjectSetMaterialParamsPbrBuilder<S>
impl<S> Send for ObjectSetMaterialParamsPbrBuilder<S>
impl<S> Sync for ObjectSetMaterialParamsPbrBuilder<S>
impl<S> Unpin for ObjectSetMaterialParamsPbrBuilder<S>
impl<S> UnsafeUnpin for ObjectSetMaterialParamsPbrBuilder<S>
impl<S> UnwindSafe for ObjectSetMaterialParamsPbrBuilder<S>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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