Struct fiberplane_templates::Template
source · #[non_exhaustive]pub struct Template {
pub id: Base64Uuid,
pub name: Name,
pub description: String,
pub body: String,
pub created_at: Timestamp,
pub updated_at: Timestamp,
pub parameters: Vec<TemplateParameter>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: Base64Uuid
§name: Name
§description: String
§body: String
§created_at: Timestamp
§updated_at: Timestamp
§parameters: Vec<TemplateParameter>
Implementations§
source§impl Template
impl Template
sourcepub fn builder() -> TemplateBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> TemplateBuilder<((), (), (), (), (), (), ())>
Create a builder for building Template
.
On the builder, call .id(...)
, .name(...)
, .description(...)
(optional), .body(...)
, .created_at(...)
, .updated_at(...)
, .parameters(...)
to set the values of the fields.
Finally, call .build()
to create the instance of Template
.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Template
impl<'de> Deserialize<'de> for Template
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Template, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Template, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Template
impl PartialEq for Template
source§impl Serialize for Template
impl Serialize for Template
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Template
impl StructuralPartialEq for Template
Auto Trait Implementations§
impl Freeze for Template
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnwindSafe for Template
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