pub struct GCloudLayerConfigBuilder<M: LogMapper = DefaultLogMapper> { /* private fields */ }
Expand description
Builder for GCloudLayerConfig
.
Implementations§
Source§impl<M: LogMapper> GCloudLayerConfigBuilder<M>
impl<M: LogMapper> GCloudLayerConfigBuilder<M>
Sourcepub fn log_name<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn log_name<VALUE: Into<String>>(self, value: VALUE) -> Self
The log name shown in Cloud Logging (e.g., "stdout"
or "my-service"
).
Sourcepub fn logger_credential<VALUE: Into<Vec<u8>>>(self, value: VALUE) -> Self
pub fn logger_credential<VALUE: Into<Vec<u8>>>(self, value: VALUE) -> Self
Raw bytes of a Google service account JSON key.
pub fn config<VALUE: Into<GoogleWriterConfig>>(self, value: VALUE) -> Self
pub fn log_mapper<VALUE: Into<M>>(self, value: VALUE) -> Self
Sourcepub fn build(
self,
) -> Result<GCloudLayerConfig<M>, GCloudLayerConfigBuilderError>
pub fn build( self, ) -> Result<GCloudLayerConfig<M>, GCloudLayerConfigBuilderError>
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for GCloudLayerConfigBuilder<M>where
M: Freeze,
impl<M> RefUnwindSafe for GCloudLayerConfigBuilder<M>where
M: RefUnwindSafe,
impl<M> Send for GCloudLayerConfigBuilder<M>
impl<M> Sync for GCloudLayerConfigBuilder<M>
impl<M> Unpin for GCloudLayerConfigBuilder<M>where
M: Unpin,
impl<M> UnwindSafe for GCloudLayerConfigBuilder<M>where
M: UnwindSafe,
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