pub struct BlogConfig {
pub enabled: bool,
pub title: String,
pub description: String,
pub agent_id: Option<String>,
pub agent_tenant_id: Option<String>,
pub frequency: BlogConfigFrequency,
pub schedule_hour: i64,
pub schedule_weekday: i64,
pub topic_prompt: String,
pub conditions: String,
pub auto_publish: bool,
pub last_generated_at: Option<String>,
}Expand description
BlogConfig model.
Fields§
§enabled: bool§title: String§description: String§agent_id: Option<String>§agent_tenant_id: Option<String>Derived, never sent by a client: set from the caller’s tenant when agent_id is assigned,
so the cron can run the author without a request context.
frequency: BlogConfigFrequency§schedule_hour: i64§schedule_weekday: i64§topic_prompt: String§conditions: String§auto_publish: bool§last_generated_at: Option<String>Drives scheduling. Null until the first successful generation.
Trait Implementations§
Source§impl Clone for BlogConfig
impl Clone for BlogConfig
Source§fn clone(&self) -> BlogConfig
fn clone(&self) -> BlogConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlogConfig
impl Debug for BlogConfig
Source§impl Default for BlogConfig
impl Default for BlogConfig
Source§fn default() -> BlogConfig
fn default() -> BlogConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlogConfig
impl<'de> Deserialize<'de> for BlogConfig
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 BlogConfig
impl PartialEq for BlogConfig
Source§impl Serialize for BlogConfig
impl Serialize for BlogConfig
impl StructuralPartialEq for BlogConfig
Auto Trait Implementations§
impl Freeze for BlogConfig
impl RefUnwindSafe for BlogConfig
impl Send for BlogConfig
impl Sync for BlogConfig
impl Unpin for BlogConfig
impl UnsafeUnpin for BlogConfig
impl UnwindSafe for BlogConfig
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