pub struct ProductOSContentPlatform { /* private fields */ }
Implementations§
source§impl ProductOSContentPlatform
impl ProductOSContentPlatform
pub fn new( relational_store: Arc<ProductOSRelationalStore>, key_value_store: Option<Arc<ProductOSKeyValueStore>>, controller: Option<Arc<Mutex<ProductOSController>>>, auth_base: String ) -> Self
pub async fn generate_content( &self, request: Request<Body> ) -> Result<Response<Body>, ProductOSContentError>
pub async fn error_response( &self, domain: String, status_code: StatusCode ) -> Response<Body>
Trait Implementations§
source§impl Feature for ProductOSContentPlatform
impl Feature for ProductOSContentPlatform
fn identifier(&self) -> String
fn register<'life0, 'life1, 'async_trait>( &'life0 self, feature: Arc<dyn Feature>, base_path: String, router: &'life1 mut ProductOSRouter ) -> Pin<Box<dyn Future<Output = RegistryFeature> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
fn register_mut<'life0, 'life1, 'async_trait>( &'life0 self, feature: Arc<Mutex<dyn Feature>>, base_path: String, router: &'life1 mut ProductOSRouter ) -> Pin<Box<dyn Future<Output = RegistryFeature> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
fn request<'life0, 'async_trait>( &'life0 self, request: Request<Body>, __arg2: String ) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn request_mut<'life0, 'async_trait>( &'life0 mut self, request: Request<Body>, version: String ) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for ProductOSContentPlatform
impl Send for ProductOSContentPlatform
impl Sync for ProductOSContentPlatform
impl Unpin for ProductOSContentPlatform
impl !UnwindSafe for ProductOSContentPlatform
Blanket Implementations§
§impl<T> Any for Twhere
T: Any,
impl<T> Any for Twhere T: Any,
fn get_type_id(&self) -> TypeId
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