You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently developing a program to manage GitHub issues and pull requests using the octocrab crate. While trying to extract information about related pull requests from the issue timeline, I noticed that the fields in models::timelines::Source are private.
error[E0451]: field `issue` of struct `Source` is private
--> src/main.rs:24:34
|
24 | if let Some(Source { issue, .. }) = &event.source {
| ^^^^^ private field
For more information about this error, try `rustc --explain E0451`.
error: could not compile `octocrab_example` (bin "octocrab_example") due to 1 previous error
Since Source does not have getter methods defined for its fields, I cannot access these values. Would it be possible to change these fields to public? Alternatively, is there another method to achieve this?
The text was updated successfully, but these errors were encountered:
I am currently developing a program to manage GitHub issues and pull requests using the octocrab crate. While trying to extract information about related pull requests from the issue timeline, I noticed that the fields in
models::timelines::Source
are private.octocrab/src/models/timelines.rs
Lines 97 to 102 in 9fbf59c
Since
Source
does not have getter methods defined for its fields, I cannot access these values. Would it be possible to change these fields to public? Alternatively, is there another method to achieve this?The text was updated successfully, but these errors were encountered: